ExUnit v1.7.2 ExUnit.Test View Source

A struct that keeps information about the test.

It is received by formatters and contains the following fields:

  • :name - the test name
  • :module - the test module
  • :state - the finished test state (see ExUnit.state/0)
  • :time - the time to run the test
  • :tags - the test tags
  • :logs - the captured logs

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %ExUnit.Test{
  case: module(),
  logs: term(),
  module: module(),
  name: atom(),
  state: ExUnit.state(),
  tags: map(),
  time: non_neg_integer()
}