Maven reporting plugins do not execute if a unit test failure occurs

前端 未结 5 1392
予麋鹿
予麋鹿 2021-01-13 19:03

None of the plugins in the reporting section of Maven execute if there is a unit test failure.

I found that I can set maven.test.failure.ignore=true here - http://

5条回答
  •  耶瑟儿~
    2021-01-13 20:07

    The error you see with 2.1.2 is because of forkmode settings which you need to perform in the plugin.

    set forkmode=never and try it (I susppect there might problem in your useSystemclassloader property).

    Otherwise make use of maven-surefire plugin version 2.5 which should definitel work and generate surefire rpeorts even though few test fails.

提交回复
热议问题