cypress-on-rails 1.11.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +57 -0
- data/.gitignore +5 -1
- data/CHANGELOG.md +26 -0
- data/README.md +94 -17
- data/cypress-on-rails.gemspec +1 -0
- data/docs/factory_bot_associations.md +109 -0
- data/lib/cypress-on-rails.rb +2 -2
- data/lib/cypress_on_rails/configuration.rb +3 -0
- data/lib/cypress_on_rails/middleware.rb +7 -11
- data/lib/cypress_on_rails/middleware_config.rb +17 -0
- data/lib/cypress_on_rails/railtie.rb +5 -1
- data/lib/cypress_on_rails/smart_factory_wrapper.rb +26 -15
- data/lib/cypress_on_rails/vcr_middleware.rb +73 -0
- data/lib/cypress_on_rails/version.rb +1 -1
- data/lib/generators/cypress_on_rails/install_generator.rb +18 -24
- data/lib/generators/cypress_on_rails/templates/config/initializers/cypress_on_rails.rb.erb +1 -0
- data/lib/generators/cypress_on_rails/templates/spec/cypress/app_commands/clean.rb +8 -0
- data/lib/generators/cypress_on_rails/templates/spec/cypress/app_commands/log_fail.rb +2 -0
- data/lib/generators/cypress_on_rails/templates/spec/cypress/{cypress_helper.rb → cypress_helper.rb.erb} +6 -1
- data/lib/generators/cypress_on_rails/templates/spec/cypress/{integration/rails_examples/advance_factory_bot_spec.js → e2e/rails_examples/advance_factory_bot.cy.js} +0 -0
- data/lib/generators/cypress_on_rails/templates/spec/cypress/{integration/rails_examples/other_spec.js → e2e/rails_examples/other.cy.js} +0 -0
- data/lib/generators/cypress_on_rails/templates/spec/cypress/{integration/rails_examples/using_factory_bot_spec.js → e2e/rails_examples/using_factory_bot.cy.js} +0 -0
- data/lib/generators/cypress_on_rails/templates/spec/cypress/{integration/rails_examples/using_fixtures_spec.js → e2e/rails_examples/using_fixtures.cy.js} +0 -0
- data/lib/generators/cypress_on_rails/templates/spec/cypress/{integration/rails_examples/using_scenarios_spec.js → e2e/rails_examples/using_scenarios.cy.js} +0 -0
- data/lib/generators/cypress_on_rails/templates/spec/cypress/e2e/rails_examples/using_vcr.cy.js +24 -0
- data/lib/generators/cypress_on_rails/templates/spec/cypress/support/{index.js → index.js.erb} +1 -0
- data/lib/generators/cypress_on_rails/templates/spec/cypress/support/on-rails.js +1 -1
- data/lib/generators/cypress_on_rails/templates/spec/cypress.config.js +9 -0
- data/plugin/.gitignore +1 -0
- data/plugin/cypress/plugins/index.js +4 -0
- data/plugin/package.json +31 -0
- data/plugin/support/index.js +37 -0
- data/spec/cypress_on_rails/middleware_spec.rb +15 -13
- data/spec/cypress_on_rails/smart_factory_wrapper_spec.rb +7 -0
- data/spec/cypress_on_rails/vcr_middleware_spec.rb +119 -0
- data/specs_e2e/cypress.config.js +10 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/.gitignore +1 -1
- data/specs_e2e/rails_3_2/.ruby_version +1 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/Gemfile +1 -1
- data/{spec/integrations → specs_e2e}/rails_3_2/README.rdoc +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/Rakefile +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/app/assets/stylesheets/application.css +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/app/controllers/application_controller.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/app/controllers/welcome_controller.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/app/helpers/application_helper.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/app/models/post.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/app/views/layouts/application.html.erb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/app/views/welcome/index.html.erb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/bin/rails +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/config/application.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/config/boot.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/config/environment.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/config/environments/development.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/config/environments/production.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/config/environments/test.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/config/initializers/backtrace_silencers.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/config/initializers/inflections.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/config/initializers/mime_types.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/config/initializers/secret_token.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/config/initializers/session_store.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/config/initializers/wrap_parameters.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/config/locales/en.yml +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/config/routes.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/config.ru +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/log/.keep +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/public/404.html +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/public/422.html +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/public/500.html +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/public/favicon.ico +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/public/robots.txt +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/test.sh +11 -10
- data/{spec/integrations → specs_e2e}/rails_3_2/tmp/.keep +0 -0
- data/{spec/integrations → specs_e2e}/rails_3_2/vendor/.gitkeep +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/.gitignore +3 -2
- data/{spec/integrations → specs_e2e}/rails_4_2/Gemfile +3 -1
- data/{spec/integrations → specs_e2e}/rails_4_2/README.rdoc +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/Rakefile +0 -0
- data/{spec/integrations/rails_5_2/app/assets/javascripts/posts.js → specs_e2e/rails_4_2/app/assets/javascripts/using_vcr.js} +0 -0
- data/{spec/integrations/rails_5_2/app/assets/stylesheets/posts.css → specs_e2e/rails_4_2/app/assets/stylesheets/using_vcr.css} +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/app/controllers/application_controller.rb +0 -0
- data/specs_e2e/rails_4_2/app/controllers/using_vcr_controller.rb +10 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/app/controllers/welcome_controller.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/app/models/post.rb +3 -1
- data/{spec/integrations → specs_e2e}/rails_4_2/app/views/layouts/application.html.erb +0 -0
- data/specs_e2e/rails_4_2/app/views/using_vcr/index.html.erb +6 -0
- data/specs_e2e/rails_4_2/app/views/using_vcr/record_cats.html.erb +7 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/app/views/welcome/index.html.erb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/bin/bundle +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/bin/rails +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/bin/rake +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/bin/setup +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/application.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/boot.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/environment.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/environments/development.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/environments/production.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/environments/test.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/initializers/backtrace_silencers.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/initializers/cookies_serializer.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/initializers/filter_parameter_logging.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/initializers/inflections.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/initializers/mime_types.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/initializers/session_store.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/initializers/to_time_preserves_timezone.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/initializers/wrap_parameters.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/locales/en.yml +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/routes.rb +5 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config/secrets.yml +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/config.ru +0 -0
- data/specs_e2e/rails_4_2/package.json +10 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/public/404.html +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/public/422.html +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/public/500.html +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/public/favicon.ico +0 -0
- data/{spec/integrations → specs_e2e}/rails_4_2/public/robots.txt +0 -0
- data/{spec/integrations/rails_4_2/log → specs_e2e/rails_4_2/spec}/.keep +0 -0
- data/specs_e2e/rails_4_2/test.sh +39 -0
- data/{spec/integrations/rails_4_2/spec → specs_e2e/rails_4_2/vendor}/.keep +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/.gitignore +1 -1
- data/{spec/integrations → specs_e2e}/rails_5_2/Gemfile +1 -1
- data/{spec/integrations → specs_e2e}/rails_5_2/README.md +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/Rakefile +0 -0
- data/specs_e2e/rails_5_2/app/assets/javascripts/posts.js +2 -0
- data/specs_e2e/rails_5_2/app/assets/stylesheets/posts.css +4 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/app/assets/stylesheets/scaffold.css +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/app/controllers/application_controller.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/app/controllers/posts_controller.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/app/helpers/posts_helper.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/app/jobs/application_job.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/app/models/application_record.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/app/models/post.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/app/views/layouts/application.html.erb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/app/views/posts/_form.html.erb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/app/views/posts/edit.html.erb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/app/views/posts/index.html.erb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/app/views/posts/new.html.erb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/app/views/posts/show.html.erb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/app/views/welcome/index.html.erb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/bin/bundle +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/bin/rails +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/bin/rake +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/bin/setup +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/bin/update +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/application.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/boot.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/credentials.yml.enc +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/database.yml +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/environment.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/environments/development.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/environments/production.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/environments/test.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/initializers/application_controller_renderer.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/initializers/backtrace_silencers.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/initializers/content_security_policy.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/initializers/cookies_serializer.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/initializers/filter_parameter_logging.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/initializers/inflections.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/initializers/mime_types.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/initializers/wrap_parameters.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/locales/en.yml +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/master.key +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config/routes.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/config.ru +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/db/migrate/20180621085832_create_posts.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/public/404.html +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/public/422.html +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/public/500.html +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/public/apple-touch-icon-precomposed.png +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/public/apple-touch-icon.png +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/public/favicon.ico +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/public/robots.txt +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/test/controllers/posts_controller_test.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/test/cypress_fixtures/posts.yml +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/test/fixtures/posts.yml +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/test/models/post_test.rb +0 -0
- data/{spec/integrations → specs_e2e}/rails_5_2/test.sh +13 -11
- data/{spec/integrations/rails_4_2 → specs_e2e/rails_5_2}/vendor/.keep +0 -0
- metadata +179 -172
- data/.travis.yml +0 -39
- data/lib/generators/cypress_on_rails/templates/spec/cypress/fixtures/example.json +0 -5
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/actions.spec.js +0 -272
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/aliasing.spec.js +0 -42
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/assertions.spec.js +0 -63
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/connectors.spec.js +0 -55
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/cookies.spec.js +0 -78
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/cypress_api.spec.js +0 -211
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/files.spec.js +0 -86
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/local_storage.spec.js +0 -52
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/location.spec.js +0 -32
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/misc.spec.js +0 -68
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/navigation.spec.js +0 -54
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/network_requests.spec.js +0 -108
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/querying.spec.js +0 -65
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/spies_stubs_clocks.spec.js +0 -62
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/traversal.spec.js +0 -121
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/utilities.spec.js +0 -89
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/viewport.spec.js +0 -59
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/waiting.spec.js +0 -34
- data/lib/generators/cypress_on_rails/templates/spec/cypress/integration/examples/window.spec.js +0 -22
- data/lib/generators/cypress_on_rails/templates/spec/cypress.json +0 -4
- data/spec/integrations/cypress.json +0 -5
- data/spec/integrations/rails_4_2/test.sh +0 -38
- data/spec/integrations/rails_5_2/log/.keep +0 -0
- data/spec/integrations/rails_5_2/tmp/.keep +0 -0
- data/spec/integrations/rails_5_2/vendor/.keep +0 -0
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/{spec/integrations → specs_e2e}/rails_4_2/config/initializers/filter_parameter_logging.rb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/{spec/integrations → specs_e2e}/rails_4_2/config/initializers/to_time_preserves_timezone.rb
RENAMED
File without changes
|
File without changes
|
File without changes
|
@@ -1,10 +1,15 @@
|
|
1
1
|
Rails.application.routes.draw do
|
2
|
+
get 'using_vcr/index'
|
3
|
+
|
2
4
|
# The priority is based upon order of creation: first created -> highest priority.
|
3
5
|
# See how all your routes lay out with "rake routes".
|
4
6
|
|
5
7
|
# You can have the root of your site routed with "root"
|
6
8
|
root 'welcome#index'
|
7
9
|
|
10
|
+
get 'using_vcr/:action', to: 'using_vcr#:action'
|
11
|
+
|
12
|
+
|
8
13
|
# Example of regular route:
|
9
14
|
# get 'products/:id' => 'catalog#view'
|
10
15
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,39 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
set -eo pipefail
|
3
|
+
|
4
|
+
echo '--- testing rails 4.2'
|
5
|
+
|
6
|
+
echo '-- setting environment'
|
7
|
+
export DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
8
|
+
export RAILS_ENV=test
|
9
|
+
export BUNDLE_GEMFILE="$DIR/Gemfile"
|
10
|
+
cd $DIR
|
11
|
+
|
12
|
+
echo '-- bundle install'
|
13
|
+
gem install bundler -v "~> 1.0" --conservative
|
14
|
+
bundle --version
|
15
|
+
bundle install --quiet --gemfile="$DIR/Gemfile" --retry 2 --path vendor/bundle
|
16
|
+
|
17
|
+
echo '-- cypress install'
|
18
|
+
yarn install
|
19
|
+
bundle exec ./bin/rails g cypress_on_rails:install --cypress_folder=spec/cypress --experimental --skip
|
20
|
+
rm -vf spec/cypress/e2e/rails_examples/advance_factory_bot.cy.js
|
21
|
+
|
22
|
+
echo '-- start rails server'
|
23
|
+
# make sure the server is not running
|
24
|
+
(kill -9 `cat tmp/pids/server.pid` || true )
|
25
|
+
|
26
|
+
bundle exec ./bin/rails server -p 5017 -e test &
|
27
|
+
sleep 5 # give rails a chance to start up correctly
|
28
|
+
|
29
|
+
echo '-- cypress run'
|
30
|
+
cp -fv ../cypress.config.js spec/
|
31
|
+
# if [ -z $CYPRESS_RECORD_KEY ]
|
32
|
+
# then
|
33
|
+
# yarn run cypress run -P ./spec
|
34
|
+
# else
|
35
|
+
yarn run cypress run -P ./spec --record
|
36
|
+
# fi
|
37
|
+
|
38
|
+
echo '-- stop rails server'
|
39
|
+
kill -9 `cat tmp/pids/server.pid`
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/{spec/integrations → specs_e2e}/rails_5_2/config/initializers/content_security_policy.rb
RENAMED
File without changes
|
File without changes
|
data/{spec/integrations → specs_e2e}/rails_5_2/config/initializers/filter_parameter_logging.rb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -4,21 +4,23 @@ set -eo pipefail
|
|
4
4
|
echo '--- testing rails 5.2'
|
5
5
|
|
6
6
|
echo '-- setting environment'
|
7
|
-
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
8
|
-
RAILS_ENV=test
|
9
|
-
BUNDLE_GEMFILE="$DIR/Gemfile"
|
7
|
+
export DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
8
|
+
export RAILS_ENV=test
|
9
|
+
export BUNDLE_GEMFILE="$DIR/Gemfile"
|
10
10
|
cd $DIR
|
11
11
|
|
12
12
|
echo '-- bundle install'
|
13
13
|
bundle --version
|
14
|
-
bundle
|
14
|
+
bundle config set --local path 'vendor/bundle'
|
15
|
+
bundle install --quiet --gemfile="$DIR/Gemfile" --retry 2
|
15
16
|
|
16
17
|
echo '-- migration'
|
17
18
|
bundle exec ./bin/rails db:drop || true
|
18
19
|
bundle exec ./bin/rails db:create db:migrate
|
19
20
|
|
20
21
|
echo '-- cypress install'
|
21
|
-
bundle exec ./bin/rails g cypress_on_rails:install --cypress_folder=test/cypress --
|
22
|
+
bundle exec ./bin/rails g cypress_on_rails:install --cypress_folder=test/cypress --skip
|
23
|
+
rm -vf test/cypress/e2e/rails_examples/using_vcr.cy.js
|
22
24
|
|
23
25
|
echo '-- start rails server'
|
24
26
|
# make sure the server is not running
|
@@ -28,14 +30,14 @@ bundle exec ./bin/rails server -p 5017 -e test &
|
|
28
30
|
sleep 2 # give rails a chance to start up correctly
|
29
31
|
|
30
32
|
echo '-- cypress run'
|
31
|
-
cp -fv ../cypress.
|
33
|
+
cp -fv ../cypress.config.js test/
|
32
34
|
cd test
|
33
|
-
if [ -z $CYPRESS_RECORD_KEY ]
|
34
|
-
then
|
35
|
-
|
36
|
-
else
|
35
|
+
# if [ -z $CYPRESS_RECORD_KEY ]
|
36
|
+
# then
|
37
|
+
# yarn run cypress run
|
38
|
+
# else
|
37
39
|
yarn run cypress run --record
|
38
|
-
fi
|
40
|
+
# fi
|
39
41
|
|
40
42
|
echo '-- stop rails server'
|
41
43
|
kill -9 `cat ../tmp/pids/server.pid` || true
|
File without changes
|