Surefire / Junit
Answered
Can someone explain how the runtime environment differs when running "test" from the Maven lifecycle menu and when running a test by selecting it (or a test method) from the source file or the project context menu for the class?
Please sign in to leave a comment.
There are 2 types of the test runners, IntelliJ IDEA built-in and provided by the build system (Maven/Gradle).
For Maven you can control it here:
Also, if you run a goal from the Maven tool window, it's always executed via Maven, not using IntelliJ IDEA runners.