Loading...
Loading...
Coverage Gaps audit worker (L3). Identifies missing tests for critical paths (Money 20+, Security 20+, Data Integrity 15+, Core Flows 15+). Returns list of untested critical business logic with priority justification.
npx skill4agent add levnikolaevich/claude-code-skills ln-634-test-coverage-auditorshared/references/task_delegation_pattern.md#audit-coordinator--worker-contractcontextStoretech_stacktestFilesMetadatacodebase_rootdomain_modecurrent_domainaudit_output_schema.md#domain-aware-worker-outputscan_pathundefinedscan_pathscan_pathGrep(pattern="payment|refund|discount", path=scan_path)domain: domain_namedomainscan_path/paymentprocessPayment()calculateDiscount()applyPromoCode()calculateTax()getTaxRate()processRefund()/refundgenerateInvoice()createBill()convertCurrency()/loginauthenticate()/refresh-tokenrefreshAccessToken()/forgot-passwordresetPassword()checkPermission()hasRole()validateApiKey()createUser()deleteOrder()updateProduct()withTransaction()runMigration()checkDuplicateEmail()paymentrefunddiscounttaxpricecurrencyauthloginpasswordtokenpermissionencrypttransactionvalidationmigrationconstraintshared/references/audit_scoring.md{
"category": "Coverage Gaps",
"score": 6,
"total_issues": 10,
"critical": 3,
"high": 4,
"medium": 2,
"low": 1,
"checks": [
{"id": "line_coverage", "name": "Line Coverage", "status": "passed", "details": "85% coverage (threshold: 80%)"},
{"id": "branch_coverage", "name": "Branch Coverage", "status": "warning", "details": "72% coverage (threshold: 75%)"},
{"id": "function_coverage", "name": "Function Coverage", "status": "passed", "details": "90% coverage (threshold: 80%)"},
{"id": "critical_gaps", "name": "Critical Gaps", "status": "failed", "details": "3 Money flows, 2 Security flows untested"}
],
"domain": "orders",
"scan_path": "src/orders",
"findings": [
{
"severity": "CRITICAL",
"location": "src/orders/services/order.ts:45",
"issue": "Missing E2E test for applyDiscount() (Priority 25, Money flow)",
"principle": "Coverage Gaps / Money Flow",
"recommendation": "Add E2E test: applyDiscount() with edge cases (negative discount, max discount, currency rounding)",
"effort": "M"
},
{
"severity": "HIGH",
"location": "src/orders/repositories/order.ts:78",
"issue": "Missing Integration test for orderTransaction() rollback (Priority 18, Data Integrity)",
"principle": "Coverage Gaps / Data Integrity",
"recommendation": "Add Integration test verifying transaction rollback on failure",
"effort": "M"
}
]
}domainscan_pathdomain_mode="domain-aware"domain_mode="domain-aware"scan_pathdomainshared/references/audit_scoring.mdshared/references/audit_output_schema.md