I am using Netbeans with Maven and TestNG. When I run tests with the maven surefire plugin, I can configure some configuration parameters, in particular the logging level used for my tests (tracing):
-Dorg.slf4j.simpleLogger.defaultLogLevel=trace -Dorg.slf4j.simpleLogger.logFile=System.out
However, when you run a specific test file (CTRL + F6) or a test method ("run focused test method"), Netbeans does not use surefire (which is good) and therefore ignores these parameters.
Is there a way to change the JVM settings used by Netbeans when it runs tests this way?
This is somewhat similar to this other post , but my question is specific to Netbeans.
source share