W3cubDocs

/Elixir 1.7

ExUnit.Test

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

Summary

Types

t()

Types

t()

t() :: %ExUnit.Test{
  case: module(),
  logs: term(),
  module: module(),
  name: atom(),
  state: ExUnit.state(),
  tags: map(),
  time: non_neg_integer()
}

© 2012 Plataformatec
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/ex_unit/1.7.3/ExUnit.Test.html