Skip to content

Instantly share code, notes, and snippets.

@christophervigliotti
Created April 20, 2018 13:55
Show Gist options
  • Select an option

  • Save christophervigliotti/4b41312c325104fcc667284017fe6e89 to your computer and use it in GitHub Desktop.

Select an option

Save christophervigliotti/4b41312c325104fcc667284017fe6e89 to your computer and use it in GitHub Desktop.
Running Tests
#Run all tests for this project
bundle exec rspec
#run single test
bundle exec rspec path/to/spec/file/thingie_spec.rb
#Useful switches
bundle exec rspec --format documentation (more output context)
bundle exec rspec --order random (tests should be able to pass in any order)
bundle exec rspec --profile (shows you slowest tests)
bundle exec rspec --fail-fast (halts processing after encountering the first error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment