This repository contains a Test Case to exhibit a behavior that appeared in Surefire 3.5.3.
A Junit5 Test Class ArchUnitSurefireBugTest
contains 3 tests
thisTestUsingArchTestFieldShouldRun
: A Test using @ArchTest on a fieldthisTestUsingArchTestMethodShouldRun
: A Test using @ArchTest on a methodthisStandardTestShouldRun
: a standard JUnit Test using no ArchUnit syntactic sugar.
Run mvn test -Dsurefire.version=3.5.2 -f pom.xml
All tests run
mvn test -Dsurefire.version=3.5.3 -f pom.xml
thisTestUsingArchTestFieldShouldRun does not run.