MutagenEx.Pipeline.TestsFacade behaviour (mutagen_ex v0.2.0)

Copy Markdown View Source

Behaviour for the :tests slot of the Mix.Tasks.Mutagen dispatch table.

Production default: MutagenEx.TestSelector. The Mix task calls mod.resolve(tests, opts) once with the accumulated --tests targets.

Summary

Callbacks

Resolve the --tests target list into a %TestFilter{}.

Callbacks

resolve(targets, opts)

@callback resolve(targets :: [String.t()], opts :: keyword()) ::
  {:ok, MutagenEx.TestSelector.TestFilter.t()}
  | {:error, map()}
  | {:error, atom(), map()}

Resolve the --tests target list into a %TestFilter{}.