AirSpecContext

AirSpecContext is an interface to pass the test environment data to individual test methods.

Spec: global

class Object
trait Matchable
class Any

Value members

Abstract methods

def currentSession: Session

Get the current session used for calling the test method

Get the current session used for calling the test method

def currentSpec: AirSpecSpi
def hasChildTask: Boolean
def testName: String

Get the test method name currently running. For a global context, this will return ''.

Get the test method name currently running. For a global context, this will return ''.

Concrete methods

def fullSpecName: String
def specName: String

Get the leaf name of the current spec class.

Get the leaf name of the current spec class.

Note: In Scala.js, this may return weired names especially for inner classes.

Concrete fields

lazy
val indentLevel: Int