Skip to content

Instantly share code, notes, and snippets.

@benoittgt
Last active December 19, 2019 17:26
Show Gist options
  • Save benoittgt/6e62ec58010e1fbebcfd8d730d599f6d to your computer and use it in GitHub Desktop.
Save benoittgt/6e62ec58010e1fbebcfd8d730d599f6d to your computer and use it in GitHub Desktop.
How to run rspec-rails cucumber tests

Specify a version before running commands

rvm use ruby-2.6
export RAILS_VERSION='~>6.0'
rm -f Gemfile.lock && bundle install --standalone binstubs
bundle exec rake smoke

To execute one cucumber test

$ bundle exec rake FEATURE=features/controller_specs/controller_spec.feature cucumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment