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?

0
2 comments

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:

0

Also, if you run a goal from the Maven tool window, it's always executed via Maven, not using IntelliJ IDEA runners.

0

Please sign in to leave a comment.