maven surefire reporting plugin configuration

前端 未结 3 977
[愿得一人]
[愿得一人] 2020-12-17 21:47

I have a multi-module maven project. The parent pom.xml is simply a way to reference common information for the 4 subprojects. I have quite a few JUnit tests that run and

3条回答
  •  被撕碎了的回忆
    2020-12-17 22:10

    For command line

    mvn surefire-report:report -Daggregate=true
    

    It could be -

    mvn clean test -fn surefire-report:report  -Daggregate=true
    OR
    mvn clean install -fn surefire-report:report  -Daggregate=true
    

    Note : fn -> NEVER fail the build, regardless of project result

    To add in pom

    true
    

提交回复
热议问题