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

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)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy