Created
April 20, 2018 13:55
-
-
Save christophervigliotti/4b41312c325104fcc667284017fe6e89 to your computer and use it in GitHub Desktop.
Running Tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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