Can you upload the project, dump file and log to the gist? I am sure it has nothing to do with the spring. run with: mvn test -X -e
On Sat, Jun 13, 2020 at 12:15 AM Jeff Jensen < jeffjen...@upstairstechnology.com> wrote: > I looked for this issue in JIRA but haven't found anything yet. Anyone > know if this has been reported and/or fixed? > > Our scenario is a failure occurs at startup of tests but Surefire doesn't > fail the build. Specifically, Spring controller tests aren't failing when > there is a Spring configuration problem. > > Spring top-level thrown exception is: > java.lang.IllegalStateException: Failed to load ApplicationContext > > but Surefire doesn't report fail. Surefire output results is: > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, > > Running the tests in an IDE correctly fail for the setup problem. >