Runs https://github.com/AntonStoeckl/go-mutesting as Github Action. Used a fork of the original go-mutesting
tool since the forked version can be used with Go modules.
See the repository's README for details about the usage of go-mutesting
.
Contributions are very welcome! If you find anything that can be done better, anything that's missing or have general questions/issues feel free to open an issue or file in a pull request.
NOTE: Requires Golang to be set up in your workflow.
...
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: <version>
...
- name: Golang mutation testing
uses: rescDev/go-mutesting-action@<version>
with:
targets: main.go entrypoint.go cmd/
disabled: structinit/remove
blacklist-file: gomutest.blacklist
output: verbose
...
Following input variables are available:
version
: Installed and used version ofgo-mutesting
. Check the repository linked above to see all available releases. Defaults tolatest
.targets
: Targets that will be tested. Can be a space-separated list of specific targets. Defaults to./...
.disabled
: Space-separated list of mutators that will be disabled.blacklist-file
: List of MD5 checksums of mutations which should be ignored, submitted as file (path).output
: Configure output levels. Available values aredebug
andverbose
. Usedebug,verbose
or vice versa for using both.
No outputs defined (yet).