mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-24 17:04:43 +00:00
Updated name of tournaments in seeds and added local cypress tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM cypress/included:12.4.0
|
||||
FROM cypress/included:13.2.0
|
||||
|
||||
COPY cypress.config.js /
|
||||
COPY ./tests/* /cypress/e2e/
|
||||
@@ -2,7 +2,7 @@ const { defineConfig } = require('cypress')
|
||||
|
||||
module.exports = defineConfig({
|
||||
e2e: {
|
||||
baseUrl: 'http://wrestlingdev-test.wimer.house',
|
||||
baseUrl: 'http://localhost',
|
||||
supportFile: false,
|
||||
video: false,
|
||||
},
|
||||
|
||||
@@ -1,13 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
#!/bin/bash
|
||||
project_dir="$(dirname $(readlink -f ${BASH_SOURCE[0]}))/.."
|
||||
cd ${project_dir}
|
||||
|
||||
cd ${project_dir}/cypress-tests
|
||||
cd deploy
|
||||
bash deploy-test.sh
|
||||
|
||||
cd ../cypress-tests
|
||||
|
||||
# include ruby, mysql, memcached, and cypress in dockerfile to emulate prod?
|
||||
# then cypress points to localhost within the docker
|
||||
|
||||
docker build -t wrestlingdev-cypress .
|
||||
|
||||
docker run -it --rm wrestlingdev-cypress
|
||||
docker run -i --rm --network=host wrestlingdev-cypress
|
||||
test_results=$?
|
||||
|
||||
cd ../deploy
|
||||
docker-compose -f docker-compose-test.yml down
|
||||
docker volume rm deploy_influxdb deploy_mysql
|
||||
|
||||
exit $?
|
||||
|
||||
Reference in New Issue
Block a user