Skip to content

Split UI tests into 2 suites - #28528

Merged
phil-davis merged 1 commit into
masterfrom
ui-test-suites
Jul 28, 2017
Merged

phil-davis merged 1 commit into
masterfrom
ui-test-suites

Conversation

@phil-davis

Copy link
Copy Markdown
Contributor

Description

Split the Behat UI tests into 2 suites:

  • files: the tests for features on the files page (scrolling the files page, renaming...)
  • other: all other existing tests

In Travis-CI, run the "files" suite and the "other" suite as 2 separate jobs

Related Issue

#28503

Motivation and Context

Travis-CI UI testing jobs have been reaching near their time limit, and sometimes going over and being killed.

  • If we run parts of the test set in separate jobs, each job will fit easily in the time limit
  • If nothing else is using our 5 Travis job slots, then more UI testing jobs (up to 5) can run in parallel, and so the total elapsed time for the CI result can be a bit less

In future, when features in the "other" suite get more tests, it will be easy to split them out into more suites. At the moment that is not necessary - "files" takes about 22 min, "other" takes about 18 min.

How Has This Been Tested?

Travis runs on my forked ownCloud repo.
A "real" Travis run here will demonstrate also.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Note: developer documentation to be updated once this change is approved. The developer doc should describe how to run just a single suite, or all suites, from the command line in a dev environment.

@PVince81

Copy link
Copy Markdown
Contributor

That's good. Once we move "files" to a separate app, the test suite can be moved there as well.

@PVince81 PVince81 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@phil-davis
phil-davis merged commit 30a06a3 into master Jul 28, 2017
@phil-davis
phil-davis deleted the ui-test-suites branch July 28, 2017 15:39
@individual-it

Copy link
Copy Markdown
Member

looking at the travis runs, this one got definitely faster. Even the total time got up, the wall clock time went down 👍
I guess you have some of the context mentioned in both suits because some features depend on multiple context to be present

phil-davis added a commit to owncloud-archive/documentation that referenced this pull request Jul 31, 2017
Doc for "Split UI tests into 2 suites" owncloud/core#28528
@lock

lock Bot commented Aug 3, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants