veve-e2e-flow
v1.2.1
Published
End-to-end tests using ava, ava-codeceptjs and chrome =====================================================
Downloads
2
Readme
End-to-end tests using ava, ava-codeceptjs and chrome
There are 3 primary goals of this project:
- Focus on testing (important) functionality (i. e. if the user can perform the action, NOT how the page looks)
- Focus on testing cross application flows (i. e. add a contract, view the details, check the emails ...)
- Provide better insights into what exactly went wrong when a test fails
Install for development
On your machine you need
- nodejs 8
- a current version of chrome (> 0.61) and chromedriver (> 2.32)
- a current version of selenium (I recommend to use selenium-standalone)
npm -g i selenium-standalone
selenium-standalone install
selenium-standalone start
npm -g i ava
npm install
Run the tests using ava
ava
Get more detailed reports
ava --verbose
Run tests in a single file
ava <testfile>
Run tests on a mobile device (name of the mobile config is 'iphone' for example)
cross-env TEST_DEVICE=iphone ava <testfile>
Run in production
For production use the docker-compose file. It will run the tests in a docker container and automatically start up and connect to a selenium/chrome container for test execution.
Just do
./run.sh