Skip to main content
Quarantine is a state that tells Momentic: “keep running this test, but don’t let failures fail the build.” It’s the right move for tests that are genuinely flaky or mid-investigation, better than skipping entirely because you still get data. When a test is quarantined:
  • It still runs on every momentic run and every CI job
  • Failures are reported as quarantined failures, not regular failures
  • The CLI returns a non-failing exit code even if quarantined tests fail
  • Runs still show up in the dashboard so you can investigate

Quarantine a test

CLI

npx momentic quarantine add <test> --reason <reason>
See momentic quarantine for the full command reference.

Dashboard

Go to Quarantine in the sidebar and click Quarantine test. You can also quarantine directly from the run viewer.
Quarantine dialog
To unquarantine, hover a test on the Quarantine page and pick Unquarantine.

Quarantine rules

Rules automate quarantine/unquarantine based on thresholds so you don’t have to intervene manually. Each rule has:
  • Action, quarantine or unquarantine
  • Metric, pass rate, failure count, or flake rate
  • Threshold, value that triggers the action
  • Window, period over which the metric is evaluated
Rule thresholds

Filters

Scope a rule to specific tests or runs:
  • Repository
  • Branch (useful for quarantining tests failing on main)
  • Labels (useful for stricter rules on a subset of tests)
Rule filters