[ 
https://jira.codehaus.org/browse/SUREFIRE-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=354475#comment-354475
 ] 

Børre Dalhaug commented on SUREFIRE-1107:
-----------------------------------------

I want to be notified if a test failed. If every test passed I don't want my 
command window to be polluted by [INFO] or [DEBUG] statements. 
Maven lets you configure the log level in 
${MAVEN_HOME}/conf/logging/simplelogger.properties and I have hidden everything 
below warn by setting  org.slf4j.simpleLogger.defaultLogLevel=warn. 
This allows me to focus on warnings and errors, not the fact that maven builds 
stuff - I know that since I ran mvn clean install.
The same goes for tests. I know that the tests are being run when running mvn 
clean install. What I want to be notified of is if a test failed. The following 
output, which I get if a test fails, is perfectly OK:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Failed tests: 
  CalculusTest.testAdd:39 expected:<1> but was:<0>

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on 
project Math: There are test failures.
[ERROR] 
[ERROR] Please refer to 
/Users/borre/NetBeansProjects/Math/target/surefire-reports for the individual 
test results.

> Configure output when running mvn clean install
> -----------------------------------------------
>
>                 Key: SUREFIRE-1107
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-1107
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.17
>         Environment: All
>            Reporter: Børre Dalhaug
>            Priority: Minor
>         Attachments: Math.zip
>
>
> Hi.
> When I run mvn clean install on a project on the command line a lot of test 
> related text is bloating my command window. I want it to shut up unless a 
> test failed. If a test fails I want the information, but not if everything is 
> OK.
> Is this possible today? Is there a configuration file somewhere? Or an option 
> I can add to mvn clean install?



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to