detect-test-smells

Installation
SKILL.md

Test Smell Detection

Identifies antipatterns and code smells in PHP test suites.

15 Test Smells

# Smell Severity Detection Pattern
1 Logic in Test High if/for/while/foreach in tests
2 Mock Overuse High >3 mocks in single test
3 Test Interdependence High static $, @depends
4 Fragile Test High expects(exactly), at()
5 Mystery Guest Medium file_get_contents, getenv
6 Eager Test Medium Multiple unrelated assertions
7 Assertion Roulette Medium >5 assertions without context
8 Obscure Test Low test_it_works, test_foo
9 Test Code Duplication Medium Repeated setup/assertion
10 Conditional Test Logic Medium if.*assert patterns
11 Hard-Coded Test Data Low Magic values in tests
Related skills
Installs
4
GitHub Stars
71
First Seen
Mar 17, 2026