JUnit output in Maven reports

前端 未结 1 520
南方客
南方客 2020-12-15 19:20

I am using Maven for my project and have following question:

I want to see the logging output of my JUnit tests (log4j, System.out, whatever) in test reports. Do you

1条回答
  •  一生所求
    2020-12-15 20:23

    I believe you can redirect the output (System.out) of test using the maven surefire plugin configuration key redirectTestOutputToFile, and then find the output in target/surefire-reports

    Check more about this in the plugin docs

    In one snipplet:

    
      
          
          org.apache.maven.plugins
          maven-surefire-plugin
          
              true
          
          
      
    
    

    0 讨论(0)
提交回复
热议问题