Maven fail-safe not executing tests

前端 未结 10 1625
孤城傲影
孤城傲影 2020-12-28 12:23

I\'ve combed StackOverflow and many other sites, have found many other related posts and have followed all said suggestions, but in the end, failsafe is skipping my

10条回答
  •  梦毁少年i
    2020-12-28 13:06

    Your tests are not in the default test sources directory src/test/java. See:

    https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

    myModule/src/main/test/java/ClientAccessIT.java

    should be:

    myModule/src/test/java/ClientAccessIT.java

    You could also update your pom file (if you really wanted tests to live in main) to include:

    
        
            
                src/main/test
            
        
    
    

提交回复
热议问题