rtk-ai/rtk

xfailed tests reported as '1 failed' in summary output

Open

#672 geöffnet am 18. März 2026

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (2.914 Forks)batch import
area:testingbugeffort-smallfilter-qualitygood first issuepriority:low

Repository-Metriken

Stars
 (48.085 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11T 1h) (45 gemergte PRs in 30 T)

Beschreibung

Description

When running pytest through the rtk proxy, tests marked with xfail (expected failure) are reported as "1 failed" in the rtk summary line, even though pytest itself reports them as xfailed (which is a pass, not a failure).

Reproduction

# Direct pytest output (correct):
3711 passed, 8 deselected, 1 xfailed in 10.01s

# rtk proxy summary (incorrect):
Pytest: 3711 passed, 1 failed

Expected behavior

The rtk summary should either:

  • Report xfailed tests as passed (since they are expected failures), or
  • Show them separately as 1 xfailed (matching pytest's own reporting)

Environment

  • rtk version: latest
  • pytest with @pytest.mark.xfail decorated tests

Contributor Guide