title: JUnit startup time is slow
body: <p>I'm working on a fairly small project (in terms of dependencies), and whenever I run a unit test it takes 8 seconds for the JVM to load, before running the actual test in 0.2s.</p>
  <p>My environment:</p>
  <ul>
  <li>Java 8</li>
  <li>Spring Tool Suite 3.8.1.RELEASE</li>
  <li>JUnit 4</li>
  <li>Windows 8</li>
  </ul>
  <p>I fear there must be something in my environment that's causing this to take so long, and I'm hoping someone has seen this before and found the source of the problem and perhaps a solution?</p>
  <p>E.g. if my <code>PATH</code> environment variable is really long, would that matter at all?</p>
  <p>What exactly happens when I run a JUnit test?</p>
  <p>The actual test I'm trying to run is:</p>
  <pre><code>public class TemplateLocationCalculatorTest {
  
      private TemplateLocationCalculator target = new TemplateLocationCalculator();
      
      @Test
      public void whenGivenRootReturnIndex(){
          Assert.assertEquals(&quot;index&quot;, target.calculate(&quot;/&quot;));
      }
  }
  </code></pre>
  <p>And the target class is this:</p>
  <pre><code>public class TemplateLocationCalculator {
  
      public String calculate(String string) {
          return &quot;index&quot;;
      }
  
  }
  </code></pre>
  <p>I hope you'll agree with me when I say this shouldn't take long to load.</p>