Skip to content
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

Functional testing #79

Merged
merged 2 commits into from
Mar 2, 2016
Merged

Conversation

ian-ross
Copy link
Contributor

  • Move Webpack setup into development VM
  • Functional test support: Selenium + PhantomJS
  • Functional testing infrastructure: test runner and "pages" pattern
  • Functional tests for: login, registration, user profile editing
  • Functional tests on Travis (doesn't work yet)

See documentation at:

 * Move Webpack setup into development VM
 * Functional test support: Selenium + PhantomJS
 * Functional testing infrastructure: test runner and "pages" pattern
 * Functional tests for: login, registration, user profile editing
 * Functional tests on Travis

See documentation at:

 - https://github.com/Cadasta/cadasta-platform/wiki/Running-functional-tests
 - https://github.com/Cadasta/cadasta-platform/wiki/Writing-functional-tests
@ian-ross
Copy link
Contributor Author

I spent a hellish Sunday trying to get this working on Travis. Complete mystery why it doesn't work -- I tried running the LiveServerTestCase tests directly on port 5000, I tried running nginx on Travis with the same reverse proxy setup that we use in the development VM, and after more than 30 attempts, I just gave up. Maybe I'll have enough energy to try again next week. In the meantime, functional tests work well in the VM, using PhantomJS. I'm sure there will be some iteration with the "page" pattern I've started on as we come up with more reusable components for testing, but I think it looks not bad as a starting point.

@oliverroick oliverroick self-assigned this Feb 29, 2016
oliverroick added a commit that referenced this pull request Mar 2, 2016
@oliverroick oliverroick merged commit 3f5e9f3 into master Mar 2, 2016
@oliverroick oliverroick deleted the infrastructure/functional-testing branch March 2, 2016 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants