SkipTest Detector Hook

The SkipTest Detector analyzes test files for skip markers and blocks their introduction. It also detects empty test files without any test functions.

Why it matters

AI agents like to take shortcuts and skip difficult tests with t.Skip(), @pytest.mark.skip, or test.skip(). The SkipTest Detector prevents this in 30+ languages - from Go to TypeScript to Zig.

Configurable severity

Four modes are available: strict (block everything), smart (default - allow conditional skips), warn (warnings only), and off (disable). An escape hatch allows justified exceptions.

More detected skips (since v6.9.6)

self.skipTest(…) in Python, it.skip, test.skip and describe.skip without parentheses, and a ternary such as (hasMigrate ? it : it.skip)(…) are detected as well; the ternary counts as a conditional skip, optional chaining (x?.y) and ?? do not. Helper files in test directories (helper, fixture, setup, conftest …) do not count as empty test files.

Ticket numbers in comments (since v7.2.0)

On git commit, the hook blocks newly added comment lines containing "Ticket NNN". Code comments describe the current state in English and reference at most concept or documentation files. Exception: ADDP:allow-ticket-ref: <reason> on the same line or the line above, or [comments] ticket_refs = false in addp.toml for the whole project.

Full documentation included with purchase

The detailed configuration reference, troubleshooting guide, and hook documentation are included as PDF in the download.

Buy now →