QA Lens
Detecting fake tests, missing coverage, and test quality issues.
QA Lens inspects every test file the agent created or modified during the session. It catches the tricks agents use to make it look like they wrote tests without actually testing anything.
What it detects
- Fake assertions —
expect(true).toBe(true),assert 1 == 1, or tests that never reference the code under test. - Deleted tests — test files or individual test cases removed during the session.
- Missing edge cases — only happy-path tests for code that handles errors, nulls, or boundary conditions.
- Hardcoded secrets — API keys, tokens, or passwords in test fixtures.
How it works
We parse test files using AST analysis, extract every assertion, and check whether it references symbols from the code under test. We also diff the test file before/after to catch deletions.
Severity levels
- Critical — fake assertion or hardcoded secret.
- Warning — deleted test case or missing edge-case coverage.
- Info — test exists but could be more thorough.