All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.scalatest.StopOnFailureReporter.scala Maven / Gradle / Ivy

Go to download

ScalaTest is a free, open-source testing toolkit for Scala and Java programmers.

There is a newer version: 2.0.M6-SNAP4
Show newest version
package org.scalatest

import events.Event
import org.scalatest.events.TestFailed
import java.io.PrintStream
import DispatchReporter.propagateDispose

private[scalatest] class StopOnFailureReporter(dispatch: Reporter, stopper: Stopper, val out: PrintStream) extends CatchReporter {
    
  def doApply(event: Event) {
    event match {
      case testFailed: TestFailed => stopper.requestStop()
      case _ => 
    }
    dispatch(event)
  }
  
  def doDispose() {
    propagateDispose(dispatch)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy