szpak / gradle-pitest-plugin

Gradle plugin for PIT Mutation Testing
http://gradle-pitest-plugin.solidsoft.info/
221 stars 58 forks source link

Ability to override `verbose` from command line #341

Closed Pfoerd closed 2 months ago

Pfoerd commented 1 year ago

When analyzing configuration failures of Pitest it's often necessary to temporarily turn on verbose output. Changing the configuration in gradle files is possible but obviously has some drawbacks.

This change adds the ability to turn on verbose output from the command line via an optional parameter:

./gradlew pitest --verbose

Fixes #349

Pfoerd commented 1 year ago

@szpak what do you think about this addition?

Pfoerd commented 2 months ago

Hi @szpak, any chance to get this released in the near future? We still have a great need for this :)

szpak commented 2 months ago

A good question. I don't remember, why I didn't merge it back then :thinking:

szpak commented 2 months ago

I've merged it into devel and it will be included in the next release. I have to do some housekeeping work before and in addition, due to the "recent" changes in Sonatype the releasing from CI might not work anymore. In the end in might take a moment to release.

As a workaround, you might define something like:

pitest {
    verbose = project.findProperty("workaroundPitestVerbose") /*+ coercing string into boolean*/ ?: "false"
...

in your build.gradle to be able to control it from the command line (probably you already have it defined that way ;-) ).

Thanks for your PR. Sorry for delay (I might missed it (?), as it looks good and safe :thinking: ).

Pfoerd commented 2 months ago

No worries and thank you! You may also consider https://github.com/szpak/gradle-pitest-plugin/issues/350 for the next releases ;)