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 "[email protected]" -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 pgadmindocker start pgdbdocker start zombie-apidocker start zombie-web
General tests
yarn testRunning all testsyarn run test:headlessRunning all tests in headless mode
Login tests
yarn run test:loginRunning login testsyarn run test:nologinRunning all except login tests
Search tests
yarn run test:searchRunning search testsyarn run test:nosearchRunning all except search tests
Sign-up tests
yarn run test:sign-upRunning sign-up testsyarn run test:nosign-upRunning all except sign-up tests
This project is licensed under the terms of the MIT license. See the LICENSE file.