From 58af31d3a7cae911cf6da3d71cf2f2ace09ea209 Mon Sep 17 00:00:00 2001 From: Csaba Date: Wed, 14 Oct 2020 23:04:01 +0100 Subject: [PATCH] rspec: add page (#4614) --- pages/common/rspec.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/rspec.md diff --git a/pages/common/rspec.md b/pages/common/rspec.md new file mode 100644 index 0000000000..66c40855f5 --- /dev/null +++ b/pages/common/rspec.md @@ -0,0 +1,32 @@ +# rspec + +> Behavior-driven development testing framework written in Ruby to test Ruby code. +> More information: . + +- 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}}`