Juggernaut.Report.Tests (Juggernaut v0.4.0)

Copy Markdown View Source

The test effectiveness page's data (design notes §11), from the mutant jobs this run ran (a selection other than none, not reused: Juggernaut.Report.Data.job?/1).

Only tests that ran in a job count: an entry whose outcome is :passed or :failed. Entries a job selected but :excluded or :skipped did not run and are left out.

For each test that ran: jobs (jobs it ran in), kills (mutants it killed, as the recorded killing test) and total_ms (its recorded durations summed over those jobs). Then two lists:

  • never_kill - tests that ran in jobs but killed nothing, costliest first;
  • slow_killers - killing tests by their mean duration in the jobs they killed in.

There is no "sole killer" list: jobs stop at the first failure (max_failures: 1), so a run never measures whether another test would also have killed a mutant.

Reused results ran in another run, so they are counted apart (reused) and not here.

Summary

Functions

The test effectiveness of run.

Functions

build(run)

@spec build(Juggernaut.Run.t()) :: map()

The test effectiveness of run.