rocm_jax/tests/conftest.py
2025-03-24 11:26:31 -05:00

9 lines
369 B
Python

import pytest
@pytest.hookimpl(optionalhook=True)
def pytest_json_modifyreport(json_report):
"""Get rid of skipped tests in reporting. We only care about xfails."""
if "summary" in json_report and "total" in json_report["summary"]:
json_report["summary"]["unskipped_total"] = json_report["summary"]["total"] - json_report["summary"].get("skipped", 0)