AirSpecContext

wvlet.airspec.spi.AirSpecContext

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

Spec: global

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

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

Attributes

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 ' '.

Attributes

Concrete methods

def fullSpecName: String
def fullTestName: 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.

Attributes

Concrete fields

lazy val indentLevel: Int