
This is a framework for inspecting test suites to find worthless assertions, missing edge cases, and gaps in coverage. It walks through example tests and flags things like "assert user" (which passes with corrupt data), missing negative test cases, and tests that don't actually verify persistence or state changes. The inspection reports show concrete rewrites with proper assertions, fixtures, and error case handling. Use this when reviewing PRs or auditing your own test code to catch tests that look fine but don't actually validate behavior. The examples focus on authentication flows, but the patterns apply to any domain where your tests need to prove something instead of just exercising code paths.
$ npx -y skills add bobmatnyc/claude-mpm-skills --skill test-quality-inspector --agent claude-codeInstalls into .claude/skills of the current project.
# test_user_registration.py
def test_user_creation():
"""Test user creation"""
user = create_user("test@example.com", "password123")
assert user
def test_login():
"""Test login"""
user = create_user("test@example.com", "password123")
result = login("test@example.com", "password123")
assert result
def test_duplicate_email():
"""Test duplicate email"""
create_user("test@example.com", "password123")
user2 = create_user("test@example.com", "password456")
assert user2
Claimed Intent: Test user creation Actually Tests: Object instantiation only
🔴 CRITICAL: Worthless Assertion
assert user # Line 5
Mental Debug: User object with garbage data would pass this test.
Sponsors