title: java sbt test: exception ignored if test is run with SpringJUnit4ClassRunner
body: <p>Got an issue when exception thrown by test is ignored by sbt and does not break the build.</p>
  
  <p>Some code:</p>
  
  <p>Test:</p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @ContextConfiguration(classes = MyConfig.class)
  public class MyTest {
  
      @Autowired
      private ClassBeingTested sut;
  
      @Test
      public void test() {
          if (true)
              throw new Exception(); //it must break the build, but it doesn't
      }
  }
  </code></pre>
  
  <p>If i remove SpringJUnit4ClassRunner and inject dependency myself it will break the build as expected.</p>
  
  <p>If i forbid sbt to fork test process it will also break the build:</p>
  
  <pre><code>lazy val myProject = project.in(file("foo/proj"))
      .settings(....)
      .settings(sbt.Keys.fork in Test := false) &lt;- the exception breaks the build
  </code></pre>
  
  <p>Any idea why it happens?</p>
  
  <p>Thanx in advance</p>