How to run individual test in the integration-test target in maven

后端 未结 6 1414
囚心锁ツ
囚心锁ツ 2020-12-23 21:36

We have a hundreds of tests defined for our integration-test phase lifecycle in maven, and they take a long time to finish.

What I want to do is run just one test in

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-23 22:16

    If you're using the Maven failsafe plugin, you can run a single integration test by setting the it.test property to your fully qualified test class name:

    mvn -Dit.test=your.TestCase verify
    

    See the failsafe plugin docs for more info.

提交回复
热议问题