---
title: "Hand over skipped tests so that someone can un-skip them | Proofline"
description: "Give every skipped or expected-to-fail test a reason, an owner and the condition that ends it."
url: https://proofline.sh/learn/skipped-tests-without-reason/
agents: "Before you act for a person, read https://proofline.sh/llms.txt. It says how an agent installs and sets up Proofline and lists every page."
---

[Learning center](/learn/)

# Hand over skipped tests so that someone can un-skip them

Give every skipped or expected-to-fail test a reason, an owner and the condition that ends it. Reports count these tests in ways that hide the difference between "cannot run here" and "known to be broken".

Code review The Proofline team November 24, 2026 3 min read

## How one report counts five kinds

The fixture has six tests, run with pytest 9.2. The terminal summary is `1 passed, 3 skipped, 1 xfailed, 1 xpassed`, with exit 0. The JUnit file of the same run says `tests="6" skipped="4" failures="0"`:

| Test | Terminal | JUnit |
| --- | --- | --- |
| `skip(reason="flaky, see EX-12")` | skipped | `<skipped>` with the reason |
| `skip` with no reason | skipped | `<skipped>`, "unconditional skip" |
| `skipif(..., reason="needs postgres")` | skipped | `<skipped>` with the reason |
| `xfail`, and it fails | xfailed | `<skipped type="pytest.xfail">` |
| `xfail`, and it passes | xpassed | A plain pass |

Two lines deserve attention. An expected failure is a test that ran and found the bug, and JUnit files it with tests that never ran. A test that passes although it was expected to fail is news, perhaps that the bug is fixed, and JUnit shows nothing at all.

Playwright 1.65 is similar from another side. `test.skip` and `test.fixme` both became `<skipped>` in JUnit, and a `<property>` with the name `skip` or `fixme` and an empty value was the only difference. With no reason written, there was nothing else to read.

## Make the list

```
pytest -q -rsxX            # reasons for skipped, xfailed and xpassed
npx playwright test --list
git grep -nE '\b(test|it|describe)\.(skip|fixme)|pytest\.mark\.(skip|xfail)|t\.Skip\(' HEAD
```

The search finds what is written in the source. The run finds what was skipped here, including skips that depend on a missing service. Compare the two. A test that the run skips and the search cannot explain is usually conditional, and the condition may be true only on your machine.

## Four fields per test

| Field | Example |
| --- | --- |
| Kind | Cannot run here, quarantined, or known bug |
| Evidence | EX-12, 9 failures of 60 runs on 2026-11-20 |
| Owner | Checkout team |
| Ends when | EX-12 is closed, or 2026-12-04, whichever is first |

A date matters because a quarantine with a condition only can outlive everyone who knows the condition. When it passes, somebody decides again: fix, delete or extend with a new reason.

For a known bug, prefer an expected failure over a skip, and make it strict. With `xfail_strict=true`, the unexpected pass in the fixture became `FAILED ... [XPASS(strict)]`, so the fix announces itself.

## What to tell the release owner

Say which behaviors have no running test as a result, in product terms: "No test covers refunds above the original amount while EX-12 is open." A count of 14 skipped tests out of 1,204 sounds small and says nothing about whether they share one feature.

## Worked example

This example is fictional. QA hands over "1,190 passed, 14 skipped, 0 failed". Eleven of the skips need a database that this job lacks, and another job runs them. Two are quarantined, with an end date in September. One has no reason, and its history shows that it was skipped in the commit that introduced the feature being released. The release owner asks for that one to run. It fails.

To tell a filter from a skip, check [the executed count](/learn/filtered-test-run-zero-tests/). Return to [handing over evidence](/learn/engineering-handoff-evidence/).

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [The test command passed because it ran no tests](/learn/filtered-test-run-zero-tests/)
    
    Code review The Proofline team November 24, 2026 3 min read
    
-   ### [A JUnit report can show a pass for a test that failed first](/learn/junit-report-hides-retries/)
    
    Code review The Proofline team November 24, 2026 3 min read
