diff options
author | Sam Bigelow <sbigelow@gitlab.com> | 2018-12-12 20:49:17 +0000 |
---|---|---|
committer | Sam Bigelow <sbigelow@gitlab.com> | 2018-12-12 20:49:17 +0000 |
commit | 78cad022cb129c4ddf710b9e922f28d4683eaf2c (patch) | |
tree | 9d25b254b5896bcd1ea969812abab56d73a83950 | |
parent | a9be222fa98733f07f6e2390401e01c7521a2d2d (diff) | |
download | gitlab-ce-78cad022cb129c4ddf710b9e922f28d4683eaf2c.tar.gz |
Document how to run rspec tests
-rw-r--r-- | doc/development/testing_guide/best_practices.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/development/testing_guide/best_practices.md b/doc/development/testing_guide/best_practices.md index 72abda26e3d..10b36b23b71 100644 --- a/doc/development/testing_guide/best_practices.md +++ b/doc/development/testing_guide/best_practices.md @@ -19,6 +19,16 @@ Here are some things to keep in mind regarding test performance: ## RSpec +To run rspec tests: + +``` +# run all tests +bundle exec rake rspec + +# run test for path +bundle exec rake rspec spec/[path]/[to]/[spec].rb +``` + ### General guidelines - Use a single, top-level `describe ClassName` block. |