Juggernaut.TestRef (Juggernaut v0.4.0)

Copy Markdown View Source

One ExUnit test, as recorded for a mutant (design notes §14.1).

id is file:line (the form mix test accepts). duration_ms and outcome are those of the run that recorded the reference, nil when the test did not run.

Summary

Functions

The outcomes a test can have.

Types

outcome()

@type outcome() :: :passed | :failed | :excluded | :skipped

t()

@type t() :: %Juggernaut.TestRef{
  duration_ms: non_neg_integer() | nil,
  file: String.t(),
  id: String.t(),
  line: pos_integer(),
  module: module(),
  name: atom(),
  outcome: outcome() | nil
}

Functions

outcomes()

@spec outcomes() :: [outcome()]

The outcomes a test can have.