startest/test_case

Types

A Test that has been executed and has a TestOutcome.

pub type ExecutedTest {
  ExecutedTest(test_case: Test, outcome: TestOutcome)
}

Constructors

A test case.

pub type Test {
  Test(name: String, body: fn() -> Nil, skipped: Bool)
}

Constructors

  • Test(name: String, body: fn() -> Nil, skipped: Bool)
pub type TestBody =
  fn() -> Nil

The outcome of a Test that has been run.

pub type TestOutcome {
  Passed
  Failed(test_failure.TestFailure)
  Skipped
}

Constructors

Values

pub fn test_decoder() -> decode.Decoder(Test)
Search Document