r/PythonProjects2 • u/Emergency-Tutor-7 • 4m ago
[Python] polyguard 0.5.1: a test gate that rejects an all-skipped run as a pass
Repo: https://github.com/Furox-Art/polyglot-code-guard - 0.5.1, the command is polyguard verify.
It is a small tool with a narrow opinion: a zero exit code does not mean tests passed. It finds the project type, runs the build and test plan, and only prints PASS when it can read positive test-execution evidence out of the runner's own output - pytest's passed line, cargo test result blocks, Go test events, JUnit/Surefire/TRX counters, Swift Testing or XCTest summaries, per-test CTest Passed records.
The 0.5.1 release tightened that: an all-skipped or zero-test run can no longer produce PASS, ambiguous runner evidence now fails closed instead of inferring execution, and MSVC multi-config builds pass an explicit --config Debug / ctest -C Debug so C and C++ plans reach a real verdict on Windows instead of CTest reporting everything as "Not Run".
Install:
python -m pip install --upgrade polyglot-code-guard
polyguard verifyEleven language identifiers are covered, and monorepos are discovered recursively with Maven/Gradle/Cargo/npm-workspace/.sln aggregators delegated to the native command once.
One honest limit: PASS means the built-in plan succeeded and real test-pass evidence was recognised, not that the code is correct or well covered, and since it executes your build scripts, an untrusted repository belongs in a disposable container - polyguard provides no OS isolation.