Temper (temper v0.2.0)

Copy Markdown View Source

Flaky-test detection for ExUnit.

Temper records every test outcome to a local history file and reports tests with divergent outcomes on the same git SHA — tests that passed and failed without the code changing.

Setup

Add the formatter next to the default one:

# test/test_helper.exs
ExUnit.start(formatters: [ExUnit.CLIFormatter, Temper.Formatter])

Run your suite as usual, then ask for the verdict:

$ mix temper.report

How it fits together

Recording — every mix test run:

Reporting — mix temper.report:

Temper never breaks a test run: on any internal error the formatter warns once and goes inert for the rest of the run.