1
0
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:
2025-05-05 19:57:03 -04:00
parent 68a7b214c9
commit 2856060b11
13 changed files with 605 additions and 46 deletions

11
cypress-tests/run-cypress-tests.sh Normal file → Executable file
View 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 $?