ExecutionOrigin

This trait is used primarily to change the junit behavior depending on the execution environment

Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def fromSpecs2orScalaz: String => Boolean
def isSpecificationFromSpecs2orScalaz(st: Seq[StackTraceElement]): Boolean

try to approximate if a specification is a specs2 one or scalaz one by passing name = org.specs2 or name = scalaz

try to approximate if a specification is a specs2 one or scalaz one by passing name = org.specs2 or name = scalaz

Inherited methods

def isExecutedFrom(name: String, st: Seq[StackTraceElement]): Boolean
Inherited from:
Stacktraces
def isExecutedFrom(name: String): Boolean

This method is used to determine for example if the JUnit runner is executed from Maven or within Eclipse. In the first the test case names don't need to have the hashcode example.

This method is used to determine for example if the JUnit runner is executed from Maven or within Eclipse. In the first the test case names don't need to have the hashcode example.

Returns:

true if this current piece of code contains name in its stacktrace.

Inherited from:
Stacktraces
def isFromClass(classNamePredicate: String => Boolean, st: Seq[StackTraceElement]): Boolean
Returns:

true if there is a stacktrace element satisfying the predicate

Inherited from:
Stacktraces
def isFromClass(classNamePredicate: String => Boolean): Boolean
Returns:

true if there is a stacktrace element satisfying the predicate

Inherited from:
Stacktraces

Concrete fields

lazy val excludeFromReporting: Boolean
lazy val isExecutedFromAnIDE: Boolean

return true if the current test is executed from an IDE

return true if the current test is executed from an IDE

lazy val isExecutedFromBazel: Boolean

return true if the current test is executed with Bazel

return true if the current test is executed with Bazel

lazy val isExecutedFromEclipse: Boolean

return true if the current test is executed with eclipse

return true if the current test is executed with eclipse

lazy val isExecutedFromGradle: Boolean

return true if the current test is executed with Gradle

return true if the current test is executed with Gradle

lazy val isExecutedFromIntellij: Boolean

return true if the current test is executed with Intellij

return true if the current test is executed with Intellij

lazy val isExecutedFromJUnitCore: Boolean

return true if the current test is executed with JUnitCore

return true if the current test is executed with JUnitCore

lazy val isExecutedFromMaven: Boolean

return true if the current test is executed with Maven

return true if the current test is executed with Maven

lazy val isExecutedFromSBT: Boolean

return true if the current test is executed with sbt

return true if the current test is executed with sbt

lazy val isExecutedFromScalaJs: Boolean

return true if the current test is executed with Scala.js

return true if the current test is executed with Scala.js