-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accommodate User Accounts functional tests #1788
Conversation
ccc6c48
to
5ddbdf9
Compare
Note: Test PR using the |
5ddbdf9
to
e519bca
Compare
681059f
to
8687aa3
Compare
8687aa3
to
f8dcb19
Compare
69bf24e
to
8bf62aa
Compare
8bf62aa
to
9ec877f
Compare
I added a commit a couple of days ago. Builds were encountering errors (the test that uses the local ChromeDriver, not BrowserStack) as well as when running tests in the VM. This error started occurring when Chromium was updated to version 61 late last week. Other people have also encountered the same error. Please refer to this Ubuntu bug report. For the meantime, and in order not to hold up this PR, I have switched to using Firefox+GeckoDriver. For the Travis build, this should only affect just 1 functional test (covering 4 test cases). The rest of the tests still succeed using BrowserStack. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required a complete rebuild of my dev VM but this worked. Nice job!
As an aside, I do wonder if we could speed up these tests by altering the test class so that it uses the same browser rather than closing and re-opening it after every test.
I also thought of this possible improvement. This does need some small modifications to the test teardown such as logging out any logged in user. Also, I still need to see if there are any time limits to a single BrowserStack session which would become long if we don't shut down the remote browser driver; I haven't found any documentation regarding this yet. But anyway, a good compromise would be to start and stop the browser session on a module basis instead of the current class method basis. |
@seav That's definitely something worth looking into. Running the functional that we have so far already takes ~35 min, so anything that makes it faster is more than welcome. |
@oliverroick, @alukach: I did a couple of experiments on how to make functional tests run faster and here are the results:
Based on the results above, maybe we should only reserve using BrowserStack for commits to the |
@seav Can you remind me what BrowserStack is offering? Just a richer set of browsers to test against? |
@alukach, yes. They also include a lot of mobile browsers for Android and iOS, something that we would want to eventually leverage as well. I also like that apart from automated tests, you yourself can use any desktop or mobile browser to view any website via BrowserStack. |
Note: This PR is branched off from PR #1774. To see the specific changes for this PR, do a branch comparison: functest/loadfixtures...functest/accounts
Proposed changes in this pull request
This PR incorporates changes to accommodate automated User Accounts tests in the cadasta-test repo.
--functional
.When should this PR be merged
The following conditions need to be met:
v0.2.1
.Risks
No risks foreseen.
Follow-up actions
Continue functional test coding.
Checklist (for reviewing)
General
migration
label if a new migration is added.Functionality
Code
Tests
Security
Documentation