trait AirSpec extends AirSpecBase with Asserts with RichAsserts
A base trait to use for writing test cases
- Alphabetic
- By Inheritance
- AirSpec
- RichAsserts
- LogSupport
- LazyLogger
- LoggingMethods
- Serializable
- Asserts
- AirSpecBase
- PlatformAirSpec
- AirSpecSpi
- AirSpecSpiCompat
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit class ShouldBe[A] extends AnyRef
- Attributes
- protected
- Definition Classes
- RichAsserts
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def after: Unit
- Attributes
- protected
- Definition Classes
- AirSpecSpi
- def afterAll: Unit
- Attributes
- protected
- Definition Classes
- AirSpecSpi
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assert(cond: => Boolean, message: String)(implicit code: SourceCode): Unit
- Attributes
- protected
- Definition Classes
- Asserts
- def assert(cond: => Boolean)(implicit code: SourceCode): Unit
- Attributes
- protected
- Definition Classes
- Asserts
- def assertEquals(a: Double, b: Double, delta: Double)(implicit code: SourceCode): Unit
- Attributes
- protected
- Definition Classes
- Asserts
- def assertEquals(a: Float, b: Float, delta: Double)(implicit code: SourceCode): Unit
- Attributes
- protected
- Definition Classes
- Asserts
- def before: Unit
- Attributes
- protected
- Definition Classes
- AirSpecSpi
- def beforeAll: Unit
- Attributes
- protected
- Definition Classes
- AirSpecSpi
- def cancel(reason: String = "cancelled")(implicit code: SourceCode): Unit
- Attributes
- protected
- Definition Classes
- Asserts
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- macro def debug(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- macro def debug(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- def defaultExecutionContext: ExecutionContext
Provide a platform-independent execution context for async testing
Provide a platform-independent execution context for async testing
- Attributes
- protected
- Definition Classes
- AirSpecSpi
- def defined: OptionTarget
- Attributes
- protected
- Definition Classes
- RichAsserts
- def design: Design
Provide a global design for this spec.
Provide a global design for this spec.
- Attributes
- protected
- Definition Classes
- AirSpecSpi
- def empty: OptionTarget
- Attributes
- protected
- Definition Classes
- RichAsserts
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- macro def error(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- macro def error(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- def fail(reason: String = "failed")(implicit code: SourceCode): Unit
- Attributes
- protected
- Definition Classes
- Asserts
- def flaky[U](block: => U)(implicit code: SourceCode): U
Mark a part of test code as flaky.
Mark a part of test code as flaky. All failures inside this block will be reported as skipped.
- Attributes
- protected
- Definition Classes
- Asserts
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def ignore(reason: String = "ignored")(implicit code: SourceCode): Unit
- Attributes
- protected
- Definition Classes
- Asserts
- def inCI: Boolean
- Attributes
- protected
- Definition Classes
- AirSpecSpi
- def inCircleCI: Boolean
- Attributes
- protected
- Definition Classes
- AirSpecSpi
- def inGitHubAction: Boolean
- Attributes
- protected
- Definition Classes
- AirSpecSpi
- def inTravisCI: Boolean
- Attributes
- protected
- Definition Classes
- AirSpecSpi
- macro def info(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- macro def info(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- def intercept[E <: Throwable](block: => Unit)(implicit arg0: ClassTag[E], code: SourceCode): E
- Attributes
- protected
- Definition Classes
- Asserts
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isScala2: Boolean
- Attributes
- protected
- Definition Classes
- AirSpecSpi
- def isScala3: Boolean
- Attributes
- protected
- Definition Classes
- AirSpecSpi
- def isScalaJS: Boolean
- Attributes
- protected
- Definition Classes
- AirSpecSpi
- def localDesign: Design
Provide a test-case local design in the spec.
Provide a test-case local design in the spec.
Note that if you override a global design in this method, test cases will create test-case local instances (singletons)
- Attributes
- protected
- Definition Classes
- AirSpecSpi
- macro def logAt(logLevel: LogLevel, message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- lazy val logger: Logger
- Attributes
- protected[this]
- Definition Classes
- LazyLogger
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def pending(reason: String = "pending")(implicit code: SourceCode): Unit
- Attributes
- protected
- Definition Classes
- Asserts
- def pendingUntil(reason: String = "pending")(implicit code: SourceCode): Unit
- Attributes
- protected
- Definition Classes
- Asserts
- def scalaJsSupport: Unit
This will add Scala.js support to the AirSpec.
This will add Scala.js support to the AirSpec.
Scala.js does not support runtime reflection, so the user needs to explicitly create Seq[MethodSurface] at compile-time. This method is a helper method to populate methodSurfaces automatically.
- Attributes
- protected
- Definition Classes
- AirSpecSpiCompat
- def scalaMajorVersion: Int
- Attributes
- protected
- Definition Classes
- AirSpecSpiCompat
- def skip(reason: String = "skipped")(implicit code: SourceCode): Unit
- Attributes
- protected
- Definition Classes
- Asserts
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def test(name: String, design: (Design) => Design = identity): AirSpecTestBuilder
Register a new test.
Register a new test. If a custom Design is provided, it will be used to populate the arguments of the test body method.
- Attributes
- protected
- Definition Classes
- AirSpecSpi
- def toString(): String
- Definition Classes
- AnyRef → Any
- macro def trace(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- macro def trace(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- macro def warn(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- macro def warn(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated