Skip to content

fix: include xfailed and xpassed in pytest summary counts#8220

Merged
mscolnick merged 1 commit intomarimo-team:mainfrom
AhmadYasser1:fix/pytest-summary-counts
Feb 10, 2026
Merged

fix: include xfailed and xpassed in pytest summary counts#8220
mscolnick merged 1 commit intomarimo-team:mainfrom
AhmadYasser1:fix/pytest-summary-counts

Conversation

@AhmadYasser1
Copy link
Contributor

Summary

Pytest summary counts didn't include xfailed and xpassed results, making the total inaccurate. Adds both fields and includes them in the summary total.

Closes #7665

Test Plan

  • Added test verifying xfailed and xpassed are counted in summary

The marimo pytest summary only tracked passed, failed, errors, and
skipped tests. Tests marked with @pytest.mark.xfail were not counted,
making the total misleading (e.g. "Total: 0" when an xfail test ran).

Add xfailed and xpassed fields to MarimoPytestResult and collect them
from pytest's terminal reporter stats. These are shown conditionally
in the summary (only when non-zero) to keep the output clean.

Closes marimo-team#7665
@dmadisetti dmadisetti added the bug Something isn't working label Feb 9, 2026
@dmadisetti
Copy link
Collaborator

Missing an explicit test for XFailed and XPassed- but the change itself looks great. Thank you!

@mscolnick mscolnick merged commit eb40ce9 into marimo-team:main Feb 10, 2026
33 of 63 checks passed
@AhmadYasser1 AhmadYasser1 deleted the fix/pytest-summary-counts branch February 10, 2026 03:25
@github-actions
Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.19.10-dev32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pytest summary output shows misleading counts (e.g. xfail tests missing)

3 participants