title: How to run junit test using java
body: <p>Hello I'm launching a Junit test using java using this code:</p>
  
  <pre><code>    JUnitCore junit2 = new JUnitCore();
      Result result2 = junit2.run(thenameoftheclass.class);
  </code></pre>
  
  <p>but in my junit original test there are some "VM option" (the IDEA window of cofig for junit). this VM options have the configuration to loggin in an app, are like the user and password system params. But I am not able to insert those params when I am trying to run junit using just a java program</p>