Skip to content

Guardrails

tests ​

4 guardrails, all at version v1.

GuardrailDefault severityWhat it checks
tests/coverage-floorwarningThe coverage the build measured is at or above the line and branch floors the team sets. Both floors default to zero, so the guardrail just reports the number until the team chooses one.
tests/no-failureserrorEvery test case in the reports passed or was skipped, so no failing test gets past the gate.
tests/no-skipped-growthwarningThe reports contain no more skipped cases than the budget allows. The budget is a fixed number in the configuration, not a comparison with the previous build, so it only catches growth if the team lowers the number as skipped tests come back.
tests/results-publishederrorThe build left a readable test report naming at least as many cases as the team expects, instead of reporting nothing at all.

You configure every guardrail in this category the same way, in the guardrails.checks array of buildnote.json. Configuring guardrails lists every option, and Guardrails lets you search the whole library.

Buildnote Limited
Registered in England and Wales, Reg: 16140412