# `ExUnit.TestModule`
[🔗](https://github.com/elixir-lang/elixir/blob/v1.20.0-rc.4/lib/ex_unit/lib/ex_unit.ex#L183)

A struct that keeps information about the test module.

It is received by formatters and contains the following fields:

  * `:file` - (since v1.11.0) the file of the test module

  * `:name` - the test module name

  * `:parameters` - (since v1.18.0) the test module parameters

  * `:setup_all?` - (since v1.18.0) if the test module requires a setup all

  * `:state` - the test error state (see `t:ExUnit.state/0`)

  * `:tags` - all tags in this module

  * `:tests` - all tests in this module

# `t`

```elixir
@type t() :: %ExUnit.TestModule{
  file: binary(),
  name: module(),
  parameters: map(),
  setup_all?: boolean(),
  state: ExUnit.state(),
  tags: map(),
  tests: [ExUnit.Test.t()]
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
