File tree 2 files changed +14
-24
lines changed
2 files changed +14
-24
lines changed Original file line number Diff line number Diff line change 9
9
10
10
echo " ---> Running tests"
11
11
bundle exec rake
12
- ./script/test_example_app $@
12
+ BUNDLE_GEMFILE= " ${1-Gemfile} " ./script/test_example_app
13
13
14
14
bundle exec rake test
15
15
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
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
-
24
5
cd 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