mix temper.doctor (temper v0.3.0)

Copy Markdown View Source

Preflight check for a working Temper setup.

$ mix temper.doctor

Runs the checks that catch the mistakes which fail silently:

  • is Temper.Formatter registered for the test env — proven by the evaluated config :ex_unit value or by recorded history?
  • is config :temper, history_path visible outside the test env, so mix temper.report reads where the formatter writes?
  • do umbrella child apps declare :temper, or will app-dir test runs record nothing?
  • did test runs actually append records to the history?
  • do the recorded records carry a usable commit SHA?

Exits with a non-zero status when a check finds a problem, so the doctor can gate setup verification in CI. Warnings do not fail.

Options

  • --history GLOB — inspect this path or glob instead of the configured or default one. A literal {partition} widens to *