Packages

t

wvlet.airspec

AirSpec

trait AirSpec extends AirSpecBase with Asserts with RichAsserts

A base trait to use for writing test cases

Linear Supertypes
RichAsserts, LogSupport, LazyLogger, LoggingMethods, Serializable, 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. Serializable
  8. Asserts
  9. AirSpecBase
  10. PlatformAirSpec
  11. AirSpecSpi
  12. AirSpecSpiCompat
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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( ... ) @native() @HotSpotIntrinsicCandidate()
  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: Any): 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[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  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 intercept[E <: Throwable](block: ⇒ Unit)(implicit arg0: ClassTag[E], code: SourceCode): E
    Attributes
    protected
    Definition Classes
    Asserts
  37. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  38. def isScala2: Boolean
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  39. def isScala3: Boolean
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  40. def isScalaJS: Boolean
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  41. 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
  42. macro def logAt(logLevel: LogLevel, message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  43. lazy val logger: Logger
    Attributes
    protected[this]
    Definition Classes
    LazyLogger
  44. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  46. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  47. def pending(reason: String = "pending")(implicit code: SourceCode): Unit
    Attributes
    protected
    Definition Classes
    Asserts
  48. def pendingUntil(reason: String = "pending")(implicit code: SourceCode): Unit
    Attributes
    protected
    Definition Classes
    Asserts
  49. 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
  50. def scalaMajorVersion: Int
    Attributes
    protected
    Definition Classes
    AirSpecSpiCompat
  51. def skip(reason: String = "skipped")(implicit code: SourceCode): Unit
    Attributes
    protected
    Definition Classes
    Asserts
  52. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  53. 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
  54. def toString(): String
    Definition Classes
    AnyRef → Any
  55. macro def trace(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  56. macro def trace(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  59. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. macro def warn(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  61. 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

Inherited from RichAsserts

Inherited from LogSupport

Inherited from LazyLogger

Inherited from LoggingMethods

Inherited from Serializable

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