API Reference temper v#0.3.0

Copy Markdown View Source

Modules

Flaky-test detection for ExUnit.

Classifies recorded test outcomes into flaky tests and suspects.

Preflight checks behind mix temper.doctor, diagnosing the setup mistakes that fail silently: a formatter that never registers, a history_path invisible outside the test env, a suite that records nothing, records without a usable commit SHA.

Boundary module that gathers run context data from the real world: git, CI environment variables, the system clock and the runtime.

ExUnit formatter that records every test outcome to the history file.

Encodes Temper.Records as history lines and decodes them back.

Merges history lines from several sources into one deduplicated stream — the aggregation step behind mix temper.merge.

Selective retention for history files — the pure core behind mix temper.clean --older-than and --keep-shas.

Boundary module that reads history files back into records.

The {partition} placeholder in configured history paths.

Boundary module that appends history lines to a .jsonl file.

One recorded test outcome — the unit Temper's history is made of.

Renders analysis results for humans or machines.

The run context shared by every test outcome recorded during one ExUnit suite run.

Mix Tasks

Deletes Temper's recorded history files, or prunes lines from them.

Preflight check for a working Temper setup.

Merges recorded history files into a single deduplicated file.

Reports flaky tests: tests with divergent outcomes on the same git SHA.