Motivation • Installation • Starting
This repository is about automated tests in NodeJS with Docker, Jenkins and NightwatchJS framework.
Running containers
-
docker run --name pgadmin --network=skynet -p 15432:80 -e "PGADMIN_DEFAULT_EMAIL=root@qaninja.io" -e "PGADMIN_DEFAULT_PASSWORD=qaninja" -d dpage/pgadmin4
-
docker run --name pgdb --network=skynet -e "POSTGRES_PASSWORD=qaninja" -p 5432:5432 -v var/lib/postgresql/data -d postgres
-
docker run --name zombie-api --network=skynet -e "DATABASE=pgdb" -p 3000:3000 -d papitoio/zombie-api
-
docker run --name zombie-web --network=skynet -e "VUE_APP_API=http://localhost:3000" -p 5000:5000 -d papitoio/zombie-web
-
docker run -u root --rm -d -p 8080:8080 -p 50000:50000 -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkinsci/blueocean
-
docker build -t wendreof/node-wd .
Running containers
docker start pgadmin
docker start pgdb
docker start zombie-api
docker start zombie-web
General tests
yarn test
Running all testsyarn run test:headless
Running all tests in headless mode
Login tests
yarn run test:login
Running login testsyarn run test:nologin
Running all except login tests
Search tests
yarn run test:search
Running search testsyarn run test:nosearch
Running all except search tests
Sign-up tests
yarn run test:sign-up
Running sign-up testsyarn run test:nosign-up
Running all except sign-up tests
This project is licensed under the terms of the MIT license. See the LICENSE file.