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

后端 未结 6 1423
囚心锁ツ
囚心锁ツ 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:01

    Just ran into this myself. Something like this worked well for me:

    mvn -Pintegration-test -Dtest=
    

    The trick was to ensure that the test-group was mentioned before the -Dtest portion.

提交回复
热议问题