title: How to make Netbeans use specific JVM parameters when running tests?
body: <p>I'm using Netbeans with Maven and TestNG. When running tests with the maven surefire plugin, I can setup some configuration parameters, in particular the logging level used for my tests (trace):</p>
  
  <pre><code>-Dorg.slf4j.simpleLogger.defaultLogLevel=trace
  -Dorg.slf4j.simpleLogger.logFile=System.out
  </code></pre>
  
  <p>However, when running a specific test file (CTRL + F6) or test method ("run focused test method"), Netbeans does not use surefire (which is good) and therefore ignores those parameters.</p>
  
  <p><strong>Is there a way to change the JVM parameters used by Netbeans when it runs tests that way?</strong></p>
  
  <p>This is somewhat similar to <a href="https://stackoverflow.com/questions/7579776/how-to-set-jvm-parameters-for-junit-unit-tests">this other post</a> but my question is specific to Netbeans.</p>