Build strict NUnit parity harness
Some checks failed
Rust API gates / api-gates (push) Has been cancelled
Some checks failed
Rust API gates / api-gates (push) Has been cancelled
This commit is contained in:
25
tools/check_test_parity.py
Normal file
25
tools/check_test_parity.py
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/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()
|
||||
Reference in New Issue
Block a user