mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-14 17:33:35 +00:00
Added cypress tests for mat stats javascript.
This commit is contained in:
11
cypress-tests/run-cypress-tests.sh
Normal file → Executable file
11
cypress-tests/run-cypress-tests.sh
Normal file → Executable file
@@ -3,8 +3,7 @@ project_dir="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/.."
|
||||
cd ${project_dir}
|
||||
|
||||
cd deploy
|
||||
docker-compose -f docker-compose-test.yml down
|
||||
docker volume rm deploy_influxdb deploy_mysql
|
||||
docker-compose -f docker-compose-test.yml down --volumes
|
||||
|
||||
bash deploy-test.sh
|
||||
|
||||
@@ -15,11 +14,13 @@ cd ../cypress-tests
|
||||
|
||||
docker build -t wrestlingdev-cypress .
|
||||
|
||||
docker run -i --rm --network=host wrestlingdev-cypress
|
||||
docker run -i --rm --network=host \
|
||||
-v ${project_dir}/cypress-tests/cypress/screenshots:/cypress/screenshots \
|
||||
-v ${project_dir}/cypress-tests/cypress/videos:/cypress/videos \
|
||||
wrestlingdev-cypress
|
||||
test_results=$?
|
||||
|
||||
cd ../deploy
|
||||
docker-compose -f docker-compose-test.yml down
|
||||
docker volume rm deploy_influxdb deploy_mysql
|
||||
docker-compose -f docker-compose-test.yml down --volumes
|
||||
|
||||
exit $?
|
||||
|
||||
Reference in New Issue
Block a user