rspec

Behavior-driven development testing framework written in Ruby to test Ruby code.

TLDR

Initialise an .rspec config and a spec helper file

$ rspec --init
copy

Run all tests

$ rspec
copy

Run a specific directory of tests

$ rspec [path/to/directory]
copy

Run a specific test file

$ rspec [path/to/file]
copy

Run multiple test files

$ rspec [path/to/file1] [path/to/file2]
copy

Run a specific test in a file (e.g. the test starts on line 83)

$ rspec [path/to/file]:[83]
copy

Run specs with a specific seed

$ rspec --seed [seed_number]
copy

Copied to clipboard
free 100$ digital ocean credit