Juggernaut.Report.Trends (Juggernaut v0.4.0)

Copy Markdown View Source

Trends over the recorded history (design notes §7.2, §11): one point per history record, oldest first, as recorded. A field that is missing or of the wrong type is nil (shown as a gap), so one odd record never stops the page, as in mix juggernaut.history.

Summary

Functions

The phase clocks of each record, oldest first: %{run_id, commit, phases: %{name => ms}} with the phase names in run order (names) across all records.

One point per record: id, start, commit, dirty, lane, verdict, score, mutants, wall time (finished_at - started_at), results reused and their recorded time, and whether it is the run the page shows (selected_id).

Functions

phases(records)

@spec phases([map()]) :: %{names: [String.t()], runs: [map()]}

The phase clocks of each record, oldest first: %{run_id, commit, phases: %{name => ms}} with the phase names in run order (names) across all records.

runs(records, selected_id)

@spec runs([map()], String.t()) :: [map()]

One point per record: id, start, commit, dirty, lane, verdict, score, mutants, wall time (finished_at - started_at), results reused and their recorded time, and whether it is the run the page shows (selected_id).