Skip to content
Unsnag

gate

What makes unsnag run exit 1.

Type: mapping

Hint: write gate: { regressed: true, new_finding: false, success_below: null }

Keys

gate.regressed

Fail when a row regressed against the Baseline.

Type: boolean
Default: true

gate.new_finding

Fail when a new Finding appears.

Type: boolean
Default: false

gate.success_below

Fail when the overall success rate is below this fraction (0 to 1).

Type: number (≥ 0, ≤ 1) or null
Default: null

Hint: give a fraction between 0 and 1, such as 0.8, or null