Maven - separate integration tests from unit tests

后端 未结 1 1767
醉酒成梦
醉酒成梦 2020-12-15 23:23

Is it possible to isolate integration tests from unit tests within same module?

I created simple pom:



        
1条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-16 00:15

    instead of:

    */integration/**/*.java
    

    try:

     */unit/**.java
    

    then in the integration profile do

    
       **/unit/**/*.java
       **/integration/**/*.java
    
    

    you may have to play with getting the includes/excludes exactly right, but that's the general idea.

    0 讨论(0)
提交回复
热议问题