im.yagni.driveby.failure.FailureReporting.scala Maven / Gradle / Ivy
The newest version!
package im.yagni.driveby.failure
import im.yagni.driveby.specs2.{BrowserAware, SpecificationAware, NakedDriveByExample}
import im.yagni.driveby.Example
trait FailureReporting[T] extends NakedDriveByExample[T] {
self: SpecificationAware with BrowserAware =>
override def onFailure = reportFailure _ :: super.onFailure
private def reportFailure(example: Example, message: String) {
FailureReporter.report(message, browser, example, specification)
}
}