Documentation

Skipped test creep alerts for CI test runs

TestNod's skipped test creep detection watches the percentage of tests marked as skipped in your JUnit XML reports on every CI run and fires an alert when the median skip rate across recent runs crosses a configurable threshold. The check runs automatically against every new test run that finishes processing, so there's nothing extra to wire up in your CI.

How TestNod detects skipped test creep

When a test run finishes processing, TestNod takes the 20 most recent processed runs in the project that share the same set of tags as the new run. For each run, it computes the skip rate as a percentage:

skip_percentage = (skipped_count / total_tests) * 100

Runs with zero total tests are excluded. TestNod then takes the median of those percentages and the alert fires when:

median_skip_percentage >= threshold_percentage

The default threshold is 10%. If the median skip rate across the last 20 same-tag runs is 10% or higher, the alert fires.

Why median, not the current run

A single run with a high skip rate is often a one-off. Common causes include:

  • Someone debugging locally and skipping a suite for that run.
  • A feature flag toggling an entire suite off.
  • A runtime being unavailable during that run.

Taking the median across 20 runs filters out those one-offs so the alert only fires once skipping has become routine.

The 20-run baseline for skip rate analysis

Skipped test creep detection needs at least 20 processed runs on the same set of tags before it can fire on a project, and it doesn't record anything for a tag combination until it reaches that count.

Runs that reported no tests at all are dropped from the median, because there is no skip rate to draw from them. A few of those in the window are fine and the alert still fires, but if fewer than 15 of the 20 came back with results, TestNod skips the check, since the median would come from too few runs.

Example: detecting a steady skip rate

Your project tags every CI run with ci and integration and uses the default 10% threshold. Over the last 20 runs on that tag set, the skip rates have come in as:

8%, 9%, 11%, 10%, 12%, 11%, 9%, 10%, 11%, 13%,
12%, 10%, 11%, 12%, 14%, 11%, 10%, 12%, 13%, 11%

The median across those 20 values is 11%, which is above the 10% threshold. The next time a run finishes with the same tag set, the alert fires with a recorded median of 11%, the new run's skip count and total tests, and the tag set used for the comparison.

What the alert event shows

When the alert fires, the event records the new run's skip rate, the median across the recent 20-run window, the raw skipped count and total test count from the new run, the threshold the check used, and the tag set used for the comparison. The alert detail page links back to the triggering run so you can open it and see which tests were skipped.

Alert detail page for a skipped test creep alert showing the skip rate, the 20-run median, the raw counts, and a link to the triggering run

Tuning the skip rate threshold

The right threshold depends on how disciplined your team is about deleting or fixing skipped tests:

  • 5% is aggressive, and the alert fires often unless your team removes or fixes skipped tests quickly.
  • 10% (default) suits projects that want to keep skipped tests in check.
  • 20% or higher means you've decided to live with a large share of skipped tests and only want to know when the number grows further.

Project admins set the threshold from the alert configuration page. See Configuring alerts for the walkthrough.

Alert configuration row for skipped test creep showing the threshold input set to 10%

What the alert does not catch

  • Projects without 20 same-tag runs yet. A median of three or four runs swings too widely to be useful, so new projects and tag combinations aren't checked until they reach 20 runs.
  • Skips concentrated in one suite. The check looks at totals per run. For example, if your end-to-end suite is fully skipped but is small relative to your unit suite, the project-wide median can stay below the threshold. Tag your suites separately if you want each one compared on its own.
  • Which tests have been skipped the longest. This alert counts skipped tests across a run but doesn't name them. The stale skipped tests alert names each test that has stayed skipped for too long and includes the reason your test runner gave.

Where to start

To turn the check on, an admin enables the skipped test creep alert on the alert configuration page and sets the threshold. After 20 same-tag runs, each new run recalculates the median, and once it crosses the threshold TestNod records an event on the alert detail page and emails the project members who haven't opted out.

If you're not sending test runs to TestNod yet, start with the Quickstart, which covers generating JUnit XML reports and uploading them from your CI in about five minutes.

Start tracking your test runs

The Solo plan is free for one project and 250 test runs a month, and you don't need a credit card to sign up.

Sign up free