Test:review

From kagenti/kagenti · View interactive version

Test:review is an AI agent skill from the GitHub repository kagenti/kagenti. Review tests for quality - assertive checks, no hidden skips, proper coverage

How to use this skill

Skill file

Test Review

Review test quality to ensure tests actually catch failures.

When to Use

Anti-Patterns to Catch

| Anti-Pattern | Problem | Fix |

|-------------|---------|-----|

| assert True | Always passes, tests nothing | Assert specific values |

| @pytest.mark.skip without reason | Hides failures silently | Add reason or remove |

| @pytest.mark.xfail without ticket | Accepted failures without tracking | Link to issue |

| try/except: pass in test | Swallows errors | Let exceptions propagate |

| assert response is not None | Only checks existence, not correctness | Assert status code + content |

| assert len(items) > 0 | Doesn't verify content | Assert specific items or properties |

| Empty test body | Test exists but does nothing | Implement or delete |

| Hardcoded timeouts sleep(30) | Flaky, slow | Use wait_for / retry pattern |

Review Checklist

Review Command

Search for anti-patterns in test files:

grep -rn "assert True\|assert False\|@pytest.mark.skip\|@pytest.mark.xfail\|pass$" rossoctl/tests/

Search for weak assertions:

grep -rn "is not None\|!= None\|assert .*>" rossoctl/tests/ | grep -v "# ok"

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.