QA calculators

How many test repetitions give a useful chance of seeing an intermittent bug?

A defect that appears in one in twenty independent runs can easily escape a five-run check. Twenty clean attempts do not prove it has disappeared.

For an assumed failure rate, how many independent repetitions meet our detection target?

Choose a number of repetitions from an assumed independent failure probability and the chance you want of seeing the fault at least once.

Calculate how many times to repeat a test

Estimate the chance of seeing an intermittent failure at least once across independent runs.

Planning assumptions
Independent repetitions
149
Detection chance at that count
95.07%

Assumes a constant failure rate and independent runs. Reusing a broken fixture or repeating the same deterministic path can make outcomes correlated.

Calculation method

For a per-run failure probability p and a target probability t, repetitions = ceiling(log(1 − t) ÷ log(1 − p)). The detection probability after n runs is 1 − (1 − p)ⁿ.

Inputs to collect

Use one consistent observation window for the inputs below. Replace the calculator’s illustrative defaults with measurements from your own software and runners.

Inputs behind the calculation
InputWhere to get it
AssumptionEstimate per-run failure probability from an appropriate population.
Detection targetChoose the probability of seeing at least one failure.
IndependenceReset state or explain which conditions remain correlated.

Interpreting your result

For failure probability p and n independent trials, detection probability is 1 − (1 − p)ⁿ. A shared poisoned cache or a fixed seed can invalidate the independence assumption.

Primary documentation

Your next release starts here

Keep building.
Put testing to work.

Give Cue April your next testing challenge. Let your AI quality lead coordinate the checks, so your team can focus on what comes next.

Create account

Create your account, connect a repository and review your proposed setup before approving a run.