veve-e2e-flow

1.2.1 • Public • Published

End-to-end tests using ava, ava-codeceptjs and chrome

There are 3 primary goals of this project:

  1. Focus on testing (important) functionality (i. e. if the user can perform the action, NOT how the page looks)
  2. Focus on testing cross application flows (i. e. add a contract, view the details, check the emails ...)
  3. 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

Readme

Keywords

none

Package Sidebar

Install

npm i veve-e2e-flow

Weekly Downloads

1

Version

1.2.1

License

ISC

Last publish

Collaborators

  • hubidev27