diff options
author | Stan Hu <stanhu@gmail.com> | 2018-12-12 23:58:37 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-12-12 23:58:37 +0300 |
commit | 6fa67ebda1503a3024d354dbb0e7baeef95f3c80 (patch) | |
tree | a450fed48970622aee9faa17cb60308e3a876f6a | |
parent | a9be222fa98733f07f6e2390401e01c7521a2d2d (diff) | |
parent | 8b7aa1e44395fba461ecdf14fc860229989ae724 (diff) |
Merge branch 'update-testing-documentation' into 'master'
Document how to run rspec tests
See merge request gitlab-org/gitlab-ce!23780
-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..24f4d457d45 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: + +```sh +# run all tests +bundle exec rspec + +# run test for path +bundle exec rspec spec/[path]/[to]/[spec].rb +``` + ### General guidelines - Use a single, top-level `describe ClassName` block. |