Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johanholmerin/mutation-report-action

Show Stryker report annotations in GitHub
https://github.com/johanholmerin/mutation-report-action

actions github mutation-testing stryker

Last synced: 27 days ago
JSON representation

Show Stryker report annotations in GitHub

Awesome Lists containing this project

README

        

# mutation-report-action

Show mutation report annotations in GitHub. Supports any framework using the
[mutation testing report schema][schema], e.g. [Stryker][stryker].

![GitHub Stryker Annotation Example](./images/annotation.png)

## GitHub Workflow config

```yaml
- name: Mutation Annotation Report
uses: johanholmerin/[email protected]
if: ${{ always() }} # Upload even if tests don't pass testing threshold
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
report-json: './reports/mutation/mutation.json' # Optional, default
```

## Stryker Configuration

Make sure to enable the [JSON reporter][stryker-json-reporter].

```javascript
"reporters": [...other reporters, "json"]
```

[schema]: https://github.com/stryker-mutator/mutation-testing-elements/tree/master/packages/report-schema
[stryker]: https://stryker-mutator.io/
[stryker-json-reporter]: https://stryker-mutator.io/docs/stryker-js/configuration#reporters-string