Skip to content

Commit

Permalink
New option to skip the initial test suite (#154)
Browse files Browse the repository at this point in the history
* New option to skip the initial test suite

Doc update for infection/infection#1042

* Style the warning message

Co-Authored-By: Maks Rafalko <b0rn@list.ru>

Co-authored-by: Maks Rafalko <b0rn@list.ru>
  • Loading branch information
duncan3dc and maks-rafalko committed Feb 26, 2020
1 parent 7b42629 commit cfb002c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/guide/command-line-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ vendor/bin/phpunit --coverage-xml=build/coverage/coverage-xml --log-junit=build/
infection.phar --coverage=build/coverage
```

### `--skip-initial-test-suite`

If you have already run the test suite to ensure it is passing, and you are providing coverage using `--coverage` then you can use this option to increase performance by not running the entire test suite again.

<p class="tip">Note that is it extremely important that you ensure the test suite is passing when using this option, otherwise test failures would appear like caught mutations and those mutations may be reported incorrectly.</p>

### `--only-covered`

Run the mutation testing only for covered by tests files.
Expand Down

0 comments on commit cfb002c

Please sign in to comment.