Open brettcooper opened 5 years ago
From the failsafe documentation:
By default, the Failsafe Plugin will automatically include all test classes with the following wildcard patterns:
"/IT*.java" - includes all of its subdirectories and all Java filenames that start with "IT". "*/IT.java" - includes all of its subdirectories and all Java filenames that end with "IT". "/*ITCase.java" - includes all of its subdirectories and all Java filenames that end with "ITCase".
So either rename the test class to match one of those, or add an include on the failsafe configuration (you have an exclude in your example)
Whoops, think I had a copy / paste error. That should be an include for Failsafe, not an exclude. I updated my example above. We want to include tests that end in IT or IntegrationTest.
Hello, I am trying to separate out our Pact tests as integration tests that run with Maven Failsafe instead of running them as unit tests with Maven Surefire. The Pact tests run fine under Surefire, but when trying to run the same Pact tests with Failsafe, they are never run. I am not sure why Pact tests don't run with Failsafe? We are running Pact 4.0.2 with Junit 5. If you need more info, please let me know. Thanks for your help!