clairvoyance.scalatest.export.ForwardingReporter.scala Maven / Gradle / Ivy
package clairvoyance.scalatest.export
import org.scalatest.events.Event
import org.scalatest.{Reporter, ResourcefulReporter}
class ForwardingReporter(reporters: Reporter*) extends ResourcefulReporter {
def apply(e: Event): Unit = reporters.foreach(_(e))
override def dispose() = reporters.foreach {
case r: ResourcefulReporter => r.dispose()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy