Cannot use jacoco JVM args and surefire JVM args together in maven

前端 未结 10 524
深忆病人
深忆病人 2020-11-30 01:48

I am using maven with the jacoco plugin to generate code coverage metrics. I am having some difficulty in configuring the surefire plugin with the java opt

10条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-30 02:11

    I have added a Maven/Java project with 1 domain class with the following features:

    • Unit or Integration testing with the plugins Surefire and Failsafe.
    • Findbugs.
    • Test coverage via Jacoco.

    I kept the project as simple as possible. The project puts many suggestions from these and other posts together in an example project. Thank you, contributors!

    The readme file gives a brief explanation. It explains how you can run either a user or an integration test with Jacoco.

    Enjoy!

提交回复
热议问题