pitest / pitest-junit5-plugin

JUnit 5 test framework support for Pitest
Apache License 2.0
74 stars 26 forks source link

How to disable the spinner for CI? #107

Closed binkley closed 2 months ago

binkley commented 2 months ago

I'd like to surface the "showSpinner" option in the Maven plugin so that I can disable it in my CI build environment (GitHub workflow). The ASCII spinner fills my CI build log with lines like:

/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\

How can I do this?

szpak commented 2 months ago

Have you tried setting the verbosity option to NO_SPINNER (or VERBOSE_NO_SPINNER)?

https://github.com/hcoles/pitest/blob/0df4d1a67e1002789420df64226c8c28c25408e1/pitest/src/main/java/org/pitest/util/Verbosity.java#L9-L10

Possibly with a overridden property to only set it on CI.

binkley commented 2 months ago

Thanks @szpak, I didn't know about that. Perhaps https://pitest.org/quickstart/maven/ could be updated to document the <verbosity> ... </verbosity> configuration option?

I'll post an issue about this in https://github.com/hcoles/pitest.