rspec
Behavior-driven development testing framework written in Ruby to test Ruby code.
- Initialise an .rspec config and a spec helper file:
rspec --init
rspec
- Run a specific directory of tests:
rspec {path/to/directory}
- Run a specific test file:
rspec {path/to/file}
rspec {path/to/file1} {path/to/file2}
- Run a specific test in a file (e.g. the test starts on line 83):
rspec {path/to/file}:{83}
- Run specs with a specific seed:
rspec --seed {seed_number}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).