File tree Expand file tree Collapse file tree 2 files changed +14
-24
lines changed Expand file tree Collapse file tree 2 files changed +14
-24
lines changed Original file line number Diff line number Diff line change 99
1010echo " ---> Running tests"
1111bundle exec rake
12- ./script/test_example_app $@
12+ BUNDLE_GEMFILE= " ${1-Gemfile} " ./script/test_example_app
1313
1414bundle exec rake test
1515
Original file line number Diff line number Diff line change 22
33set -e
44
5- gemfile=" ${1-Gemfile} "
6-
7- run_example_tests () {
8- bundle
9- yarn install
10-
11- # test a normal test run
12- bundle exec rake db:test:prepare
13- NODE_OPTIONS=--openssl-legacy-provider RAILS_ENV=test bundle exec rake assets:precompile
14- bundle exec rake cypress:run
15-
16- # test that passing options works (by printing help)
17- if ! bundle exec rake cypress:run CYPRESS_RAILS_CYPRESS_OPTS=" -h" | grep -q " Usage: cypress run \[options\]" ; then
18- echo " Failed to pass options to cypress run"
19- exit 1
20- fi
21- }
22-
23-
245cd example
25-
26- echo " ---> Running example tests with ${gemfile} "
27- BUNDLE_GEMFILE=$gemfile run_example_tests
28-
6+ bundle
7+ yarn install
8+
9+ # test a normal test run
10+ bundle exec rake db:test:prepare
11+ NODE_OPTIONS=--openssl-legacy-provider RAILS_ENV=test bundle exec rake assets:precompile
12+ bundle exec rake cypress:run
13+
14+ # test that passing options works (by printing help)
15+ if ! bundle exec rake cypress:run CYPRESS_RAILS_CYPRESS_OPTS=" -h" | grep -q " Usage: cypress run \[options\]" ; then
16+ echo " Failed to pass options to cypress run"
17+ exit 1
18+ fi
You can’t perform that action at this time.
0 commit comments