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?

2 comments
Comment actions Permalink

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
Comment actions Permalink

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.