I am migrating an existing project for download. I created a completely new project using start.spring.io and copied the source code, etc. Everything compiles, but when I run the "mvn test", it compiles the classes, but then only the "ApplicationTests" by default (created by running .spring.io).
Here is an excerpt from the maven output:
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ pendview --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\dev\pendview2\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ pendview --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 26 source files to C:\dev\pendview2\target\test-classes [INFO] [INFO] --- maven-surefire-plugin:2.15:test (default-test) @ pendview --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------
What's even weirder, if I pass '-Dtest = TestAuthController' then it runs this particular unit test:
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ pendview --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 26 source files to C:\dev\pendview2\target\test-classes [INFO] [INFO] --- maven-surefire-plugin:2.15:test (default-test) @ pendview --- [INFO] Surefire report directory: C:\dev\pendview2\target\surefire-reports (skipped output of AuthControllerTest for brevity) ------------------------------------------------------- TESTS -------------------------------------------------------Results : Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
What am I doing wrong? Does spring load the configuration with confidence that I disagree?
Any help would be greatly appreciated! -Trey
java spring spring-boot spring-mvc maven
user2237271
source share