Declare source and test folders in parity.yaml.
New: matched coverage for the test that owns the file
Variation 01 / Ledger
Coverage, reconciled file by file.
Parity turns every source file and its belonging test into a reviewable ledger. Global coverage can pass while ownership is weak; matched coverage shows whether the right test covered the right file.
ServicesInvoiceTotal.phpInvoiceTotalTest.php91%Slugger.phpSluggerTest.php100%CheckoutGateway.phpCheckoutGatewayTest.php18%Fails because the file’s own test only covers 18%, even though project coverage is 88%.
Read coverage from Parity JSON, PHPUnit XML, Clover, or Cobertura.
Fail CI on missing tests, weak ownership, or low matched coverage.
Audit trail
Every row explains what a reviewer should do next.
Instead of sending a contributor to a global coverage dashboard, Parity keeps the conversation local: the source file, the test that should own it, the policy it failed, and the measured matched coverage.
Looks safe when all tests are blended together.
Shows the belonging test barely exercised its file.
Prevents accidental coverage from hiding weak ownership.
Best when the homepage needs to explain the category in one screen.
The ledger style makes Parity feel like infrastructure: precise, auditable, and easy to hand to engineering leadership or DevOps. It should be the base direction if the homepage needs to be credible before it is playful.

