Unit Test Tips & FAQ
mvn test
doesn't run the tests
mvn test
doesn't run the testsIf you run mvn test
but it tells you that:
There might be a couple of reasons, like incidentally using JUnit 5 but you're using JUnit 4's mechanisms.
In my case, it was caused by excluding org.junit.vintage:junit-vintage-engine
in org.springframework.boot:spring-boot-starter-test
dependency.
So I have to make sure not excluding it. For example:
Last updated