Skip to content

Latest commit

 

History

History
 
 

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Testing

With Docker

Go to the tests/ directory and install node modules, start test application with node (webserver), Firefox (browser) and CodeceptJS (testing).

cd tests
docker-compose run --rm node npm install
docker-compose up -d
  • Webserver URL: http://127.0.0.1:9100/
  • Selenium Firefox Browser URL: vnc://127.0.0.1:9059/
  • Selenium Chrome Browser URL: vnc://127.0.0.1:9060/
docker-compose run --rm codeceptjs bash

$ npm run build
$ codeceptjs run

Tests whose Scenario string contains the tag @optional will be ignored by the automated build process.

Development

To watch changes, eg. while development or fixing code you can run

docker-compose run --rm node bash

$ npm start

which effectively runs the Webpack development server in your project

References