-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maven verbose
option in configuration has no effect; looking for quieter builds
#1338
Comments
The You don't state how you are setting the flag to true for your test, but it appears to have been done incorrectly if both outputs are the same. If you enable from the command line using the standard maven convention mvn -Dverbose=true etc etc It will activate considerably more output. You can achieve slightly less noise using the alternate mvn -Dverbosity=QUIET etc etc Most of the output you are seeing (loaded plugins etc) is however generated before the verbosity flags are parsed so cannot currently be suppressed. |
Hey @hcoles, thank you!
With the Gradle plugin for PITest, I can set I'm writing docs in https://github.com/binkley/modern-java-practices/wiki/Maintain-your-build, and want to show folks how to get the output logging that makes sense for their project. How should I document this to others? What doc links for this project should I share? |
Following up this issue with pitest/pitest-junit5-plugin#107. |
@szpak ☝️ |
https://github.com/hcoles/pitest-site/blob/gh-pages/quickstart/maven.markdown#verbose
Good catch, there could more information about possible options (or a link) in the "verbosity"-related paragraph. @hcoles How would you see it? |
Yes, the documentaiton is badly maintained at the moment and the vebosity flag looks to be missing. Happy to merge PR to add it. |
Summary: Looking to quiet the PITest output in my Maven build unless there are errors/warnings. An ask at bottom
I compared the build output with Maven for the
verbose
configuration option, and I find no difference.Contrast with the Gradle plugin for PITest which has markedly less out when
verbose
isfalse
.Checking the source code ...
verbose
is a valid configuration option: https://github.com/hcoles/pitest/blob/master/pitest-maven/src/main/java/org/pitest/maven/AbstractPitMojo.java#L192What I'm concluding:
The existing PITest output is rather voluminous and detailed. I recommend to others a local build that is mostly quiet unless something goes wrong, and only default noisy in CI (ie, shared remote builds like GitLab, GitHub, ADO, etc).
Ask: How can I configure a maven build (including possibly config files for logging systems) so that I don't normally see much output unless things go wrong?
Output from Maven for PITest with
verbose
set totrue
and then set tofalse
:build-output-verbose-true.txt
build-output-verbose-false.txt
The text was updated successfully, but these errors were encountered: