mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
rspec: add page (#4614)
This commit is contained in:
parent
0684b3a7cb
commit
58af31d3a7
1 changed files with 32 additions and 0 deletions
32
pages/common/rspec.md
Normal file
32
pages/common/rspec.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# rspec
|
||||
|
||||
> Behavior-driven development testing framework written in Ruby to test Ruby code.
|
||||
> More information: <https://rspec.info>.
|
||||
|
||||
- Initialise an .rspec config and a spec helper file:
|
||||
|
||||
`rspec --init`
|
||||
|
||||
- Run all tests:
|
||||
|
||||
`rspec`
|
||||
|
||||
- Run a specific directory of tests:
|
||||
|
||||
`rspec {{path/to/directory}}`
|
||||
|
||||
- Run a specific test file:
|
||||
|
||||
`rspec {{path/to/file}}`
|
||||
|
||||
- Run multiple test files:
|
||||
|
||||
`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}}`
|
Loading…
Add table
Reference in a new issue