ExUnit formatter that records every test outcome to the history file.
Add it alongside the default formatter in test/test_helper.exs:
ExUnit.start(formatters: [ExUnit.CLIFormatter, Temper.Formatter])On :suite_started it gathers the run context (Temper.Env) and
opens a Temper.History.Writer; each :test_finished appends one
record; :suite_finished (or :sigquit/:max_failures_reached)
appends a suite summary line and closes the file.
The history path defaults to .temper/history-{partition}.jsonl and
can be overridden with the :history_path application env:
config :temper, history_path: "custom/path.jsonl"Temper must never break a test run: every event handler is guarded — on any error the formatter logs a single warning and goes inert for the rest of the run.
Summary
Functions
Returns a specification to start this module under a supervisor.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.