Files
MetaCrate/tools/check_test_parity.py
Chili Palmer 80fbe87b98
Some checks failed
Rust API gates / api-gates (push) Has been cancelled
Build strict NUnit parity harness
2026-08-08 16:47:41 +02:00

26 lines
677 B
Python

#!/usr/bin/env python3
"""Audit the checked-in NUnit-to-Rust parity catalog and source markers."""
from __future__ import annotations
import argparse
from pathlib import Path
from generate_surface import check_test_parity
def main() -> None:
parser = argparse.ArgumentParser()
parser.add_argument("--root", type=Path, default=Path("."))
parser.add_argument("--require-reviewed", action="store_true")
args = parser.parse_args()
report = check_test_parity(args.root.resolve(), args.require_reviewed)
print(
"test parity: "
+ ", ".join(f"{name}={count}" for name, count in report.items())
)
if __name__ == "__main__":
main()