Is there a way to automatically detect junit/spring4 errors?

I have intellij IDEA Ultimate edition and I believe, any plugins related to junit and Sping installed. My build is done outside of intellij and all of the juint tests are run during the build process. Often it takes about 5 minutes to complete only to tell me there is some error that inevitably is related to junit testing configuration. Usually some bean is missing or missing a property, or some annotation is missing in some class somewhere.. It wastes a lot of time. Is there a plugin or setting that will allow intellij to detect junit/Spring configuration errors BEFORE I start the build process just like it does for almost any other type of error? Why does it feel like automatic junit/Spring issue detection is a black hole while much more advanced things, like the issues FindBugs detects, are easily reported before a build?

2 comments
Comment actions Permalink

These errors should be highlighted in editors on-the-fly. You can also enable validation on "Make" for Spring Model (https://www.jetbrains.com/idea/help/compiler-validation.html), unfortunately this will only check configuration files in production scope.
I have created https://youtrack.jetbrains.com/issue/IDEA-141662 as feature request to include test configurations as well.

0
Comment actions Permalink

Yes! This seems to be what I was after. As soon as I saw the message "Validating Spring configuration.." appear upon rebuild I knew it would be helpfull. Thanks!

0

Please sign in to leave a comment.