Skip to content

Commit

Permalink
Add docs for --logger-html='report.html' CLI option
Browse files Browse the repository at this point in the history
  • Loading branch information
maks-rafalko committed Dec 26, 2021
1 parent 7e533ad commit b6e469e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/guide/command-line-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,18 @@ infection.phar --logger-github --git-diff-filter=A

Here is [a real example](https://github.com/infection/infection/blob/bef65fc22faa200edd367ffe12596905947a2a93/.github/workflows/mt-annotations.yaml#L50-L52) how Infection uses it itself.

### `--logger-html`

This option is used to provide a path to the generated HTML Report:

```angular2html
infection.phar --logger-html='mutation-report.html'
```

After Infection completes its job, the `mutation-report.html` file will be generated with HTML report ([example](/static/html-report-example.html)).

Takes precedence over `logger.html` setting inside `infection.json` file. If you want to always generate HTML report, it's better to configure it inside `infection.json`, see [here](/guide/usage.html).

### `--skip-initial-tests`

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.
Expand Down

0 comments on commit b6e469e

Please sign in to comment.