Skip to content

Commit

Permalink
add a doc on how to run a single test
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Sep 5, 2023
1 parent 07c7973 commit 48f8e96
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/DevelopmentGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ $ bundle exec rake test:minitest'[--seed 1234]'

This can be useful for replicating conditions from CI or isolating certain tests.

#### Running one single test

Many times we want to run one test file or one single test instead of rerunning the whole test suite.
To do that, you could use `--example` RSpec argument.

For example, to run only tests for Minitest hooks you can do:

```bash
bundle exec rake test:minitest'[--example hooks]'
```

#### Checking test coverage

You can check test code coverage by creating a report *after* running a test suite:
Expand Down

0 comments on commit 48f8e96

Please sign in to comment.