Packages

trait AirSpec extends AirSpecBase with Asserts with RichAsserts

A base trait to use for writing test cases

Linear Supertypes
RichAsserts, LogSupport, LazyLogger, LoggingMethods, Serializable, Asserts, AirSpecBase, PlatformAirSpec, AirSpecSpi, AirSpecSpiCompat, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AirSpec
  2. RichAsserts
  3. LogSupport
  4. LazyLogger
  5. LoggingMethods
  6. Serializable
  7. Asserts
  8. AirSpecBase
  9. PlatformAirSpec
  10. AirSpecSpi
  11. AirSpecSpiCompat
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. implicit class ShouldBe[A] extends AnyRef
    Attributes
    protected
    Definition Classes
    RichAsserts

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def after: Unit
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  5. def afterAll: Unit
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def assert(cond: => Boolean, message: String)(implicit code: SourceCode): Unit
    Attributes
    protected
    Definition Classes
    Asserts
  8. def assert(cond: => Boolean)(implicit code: SourceCode): Unit
    Attributes
    protected
    Definition Classes
    Asserts
  9. def assertEquals(a: Double, b: Double, delta: Double)(implicit code: SourceCode): Unit
    Attributes
    protected
    Definition Classes
    Asserts
  10. def assertEquals(a: Float, b: Float, delta: Double)(implicit code: SourceCode): Unit
    Attributes
    protected
    Definition Classes
    Asserts
  11. def before: Unit
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  12. def beforeAll: Unit
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  13. def cancel(reason: String = "cancelled")(implicit code: SourceCode): Unit
    Attributes
    protected
    Definition Classes
    Asserts
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  15. macro def debug(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  16. macro def debug(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  17. 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
  18. def defined: OptionTarget
    Attributes
    protected
    Definition Classes
    RichAsserts
  19. def design: Design

    Provide a global design for this spec.

    Provide a global design for this spec.

    Attributes
    protected
    Definition Classes
    AirSpecSpi
  20. def empty: OptionTarget
    Attributes
    protected
    Definition Classes
    RichAsserts
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  23. macro def error(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  24. macro def error(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  25. def fail(reason: String = "failed")(implicit code: SourceCode): Unit
    Attributes
    protected
    Definition Classes
    Asserts
  26. 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
  27. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  29. def ignore(reason: String = "ignored")(implicit code: SourceCode): Unit
    Attributes
    protected
    Definition Classes
    Asserts
  30. def inCI: Boolean
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  31. def inCircleCI: Boolean
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  32. def inGitHubAction: Boolean
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  33. def inTravisCI: Boolean
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  34. macro def info(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  35. macro def info(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  36. def initDesign(design: (Design) => Design): Unit

    Initialize the design before starting tests in this spec

    Initialize the design before starting tests in this spec

    design

    update the function

    Attributes
    protected
    Definition Classes
    AirSpecSpi
  37. def initLocalDesign(design: (Design) => Design): Unit

    Initialize the test-case local design before running each test

    Initialize the test-case local design before running each test

    Attributes
    protected
    Definition Classes
    AirSpecSpi
  38. def intercept[E <: Throwable](block: => Unit)(implicit arg0: ClassTag[E], code: SourceCode): E
    Attributes
    protected
    Definition Classes
    Asserts
  39. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  40. def isScala2: Boolean
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  41. def isScala3: Boolean
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  42. def isScalaJS: Boolean
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  43. def localDesign: Design

    Provide a test-case local design in the spec.

    Provide a test-case local design in the spec.

    Attributes
    protected
    Definition Classes
    AirSpecSpi
  44. macro def logAt(logLevel: LogLevel, message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  45. lazy val logger: Logger
    Attributes
    protected[this]
    Definition Classes
    LazyLogger
  46. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  47. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  48. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  49. def pending(reason: String = "pending")(implicit code: SourceCode): Unit
    Attributes
    protected
    Definition Classes
    Asserts
  50. def pendingUntil(reason: String = "pending")(implicit code: SourceCode): Unit
    Attributes
    protected
    Definition Classes
    Asserts
  51. 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
  52. def scalaMajorVersion: Int
    Attributes
    protected
    Definition Classes
    AirSpecSpiCompat
  53. def skip(reason: String = "skipped")(implicit code: SourceCode): Unit
    Attributes
    protected
    Definition Classes
    Asserts
  54. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  55. 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
  56. def toString(): String
    Definition Classes
    AnyRef → Any
  57. macro def trace(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  58. macro def trace(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  59. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  60. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  61. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  62. macro def warn(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  63. macro def warn(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from RichAsserts

Inherited from LogSupport

Inherited from LazyLogger

Inherited from LoggingMethods

Inherited from Serializable

Inherited from Asserts

Inherited from AirSpecBase

Inherited from PlatformAirSpec

Inherited from AirSpecSpi

Inherited from AirSpecSpiCompat

Inherited from AnyRef

Inherited from Any

Ungrouped