title: JUnit without Eclipse : how to get the TestRunner Window
body: <p>I followed a tutorial here to execute a test runner out of Eclipse :
  <a href="http://www.tutorialspoint.com/junit/junit_environment_setup.htm" rel="nofollow noreferrer">http://www.tutorialspoint.com/junit/junit_environment_setup.htm</a></p>
  
  <p>Nevertheless when test fails it outputs in the console, not in popup Window like this:</p>
  
  <p><a href="https://i.stack.imgur.com/hAndv.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hAndv.gif" alt="enter image description here"></a></p>
  
  <p>Can I change the code below to get that popup Window ?</p>
  
  <pre><code>import org.junit.runner.JUnitCore;
  import org.junit.runner.Result;
  import org.junit.runner.notification.Failure;
  
  public class TestRunner {
     public static void main(String[] args) {
        Result result = JUnitCore.runClasses(TestJunit.class);
        for (Failure failure : result.getFailures()) {
           System.out.println(failure.toString());
        }
        System.out.println(result.wasSuccessful());
     }
  }  
  </code></pre>