logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

RSpec - Test Ruby Code with Behavior-Driven Development | Online Free DevTools by Hexmos

Test Ruby code effectively with RSpec, a behavior-driven development framework. Write cleaner and more maintainable tests. Free online tool, no registration required.

rspec

Behavior-driven development testing framework written in Ruby to test Ruby code. More information: https://rspec.info.

  • Initialize an .rspec configuration and a spec helper file:

rspec --init

  • Run all tests:

rspec

  • Run a specific directory of tests:

rspec {{path/to/directory}}

  • Run one or more 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}}

See Also