Presubmit.Adapters.ExUnitCase (presubmit v0.2.2)

Copy Markdown View Source

Models test modules: use ExUnit.Case, or use of any module whose name ends in Case (MyApp.DataCase, MyAppWeb.ConnCase).

The subject is inferred from the test module's name by stripping a Test suffix, which is how mix test and ExUnit's own conventions pair them.

Summary

Functions

Whether the test module is about subject, by name or by reference.

Types

t()

@type t() :: %Presubmit.Adapters.ExUnitCase{
  module: module(),
  references: [module()],
  subject: module() | nil,
  tests: [String.t()]
}

Functions

covers?(ex_unit_case, module)

@spec covers?(t(), module()) :: boolean()

Whether the test module is about subject, by name or by reference.