mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-15 21:39:00 +00:00
Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
@ -35,11 +35,18 @@ Here are some things to keep in mind regarding test performance:
|
||||
To run RSpec tests:
|
||||
|
||||
```shell
|
||||
# run all tests
|
||||
# run test for a file
|
||||
bin/rspec spec/models/project_spec.rb
|
||||
|
||||
# run test for the example on line 10 on that file
|
||||
bin/rspec spec/models/project_spec.rb:10
|
||||
|
||||
# run tests matching the example name has that string
|
||||
bin/rspec spec/models/project_spec.rb -e associations
|
||||
|
||||
# run all tests, will take hours for GitLab codebase!
|
||||
bin/rspec
|
||||
|
||||
# run test for path
|
||||
bin/rspec spec/[path]/[to]/[spec].rb
|
||||
```
|
||||
|
||||
Use [Guard](https://github.com/guard/guard) to continuously monitor for changes and only run matching tests:
|
||||
|
Reference in New Issue
Block a user