Prevent unit tests but allow integration tests in Maven

前端 未结 7 830
無奈伤痛
無奈伤痛 2020-11-29 14:50

I\'ve a Maven build in which I use the SureFire plugin to run some unit tests, and the FailSafe plugin to run some integration tests. I would like a way to run just the Fai

7条回答
  •  天命终不由人
    2020-11-29 15:39

    To expand on comments from @danidemi and @GuillaumeHusta:

    FYI : skipTests is now deprecated in Failsafe Plugin 3.0.0-M3 (SUREFIRE-1611)

    So to skip unit tests, but not integration tests, you can do this if you're using the latest version of the Failsafe plugin:

    mvn verify -DskipTests
    

    (please give the mentioned comments an upvote if this helps you)

提交回复
热议问题