Spring Boot - My unit tests are being skipped
Spring Boot configures the Surefire plugin to run all test classes that have a name ending with Test
or Tests
but not starting with Abstract
. You can see this configuration in the spring-boot-starter-parent
pom. If your test class is named TestAuthController
then it doesn't match this configuration. Renaming it to AuthControllerTest
or AuthControllerTests
should fix your problem.