Trait

wvlet.airspec

AirSpec

Related Doc: package airspec

Permalink

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, 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. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class ShouldBe extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    RichAsserts

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. var _methodSurfaces: Seq[MethodSurface]

    Permalink
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  5. def after: Unit

    Permalink
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  6. def afterAll: Unit

    Permalink
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def assert(cond: ⇒ Boolean, message: String)(implicit code: SourceCode): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Asserts
  9. def assert(cond: ⇒ Boolean)(implicit code: SourceCode): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Asserts
  10. def assertEquals(a: Double, b: Double, delta: Double)(implicit code: SourceCode): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Asserts
  11. def assertEquals(a: Float, b: Float, delta: Double)(implicit code: SourceCode): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Asserts
  12. def before: Unit

    Permalink
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  13. def beforeAll: Unit

    Permalink
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  14. def cancel(reason: String = "cancelled")(implicit code: SourceCode): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Asserts
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  16. macro def debug(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  17. macro def debug(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  18. def defined: OptionTarget

    Permalink
    Attributes
    protected
    Definition Classes
    RichAsserts
  19. def design: Design

    Permalink

    Provide a global design for this spec.

    Provide a global design for this spec.

    Attributes
    protected
    Definition Classes
    AirSpecSpi
  20. def empty: OptionTarget

    Permalink
    Attributes
    protected
    Definition Classes
    RichAsserts
  21. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  23. macro def error(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  24. macro def error(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  25. def fail(reason: String = "failed")(implicit code: SourceCode): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Asserts
  26. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  27. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  28. def ignore(reason: String = "ignored")(implicit code: SourceCode): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Asserts
  29. def inCI: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  30. def inCircleCI: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  31. def inGitHubAction: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  32. def inTravisCI: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  33. macro def info(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  34. macro def info(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  35. def intercept[E <: Throwable](block: ⇒ Unit)(implicit arg0: ClassTag[E], code: SourceCode): E

    Permalink
    Attributes
    protected
    Definition Classes
    Asserts
  36. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  37. def isScalaJS: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    AirSpecSpi
  38. def localDesign: Design

    Permalink

    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
  39. macro def logAt(logLevel: LogLevel, message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  40. lazy val logger: Logger

    Permalink
    Attributes
    protected[this]
    Definition Classes
    LazyLogger
  41. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  42. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  43. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  44. def pending(reason: String = "pending")(implicit code: SourceCode): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Asserts
  45. macro def pending: Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Asserts
  46. def pendingUntil(reason: String = "pending")(implicit code: SourceCode): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Asserts
  47. macro def scalaJsSupport: Unit

    Permalink

    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
    AirSpecSpi
  48. def skip(reason: String = "skipped")(implicit code: SourceCode): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Asserts
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  50. def test(name: String, design: Design = Design.empty): AirSpecTestBuilder

    Permalink

    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
  51. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  52. macro def trace(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  53. macro def trace(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  54. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. macro def warn(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  58. macro def warn(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

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 AnyRef

Inherited from Any

Ungrouped