Chock.sh Build your plugin

Policies

Block Test Skips

Block Test Skips: what it does, its label on each agent, what it misses, and examples.

Catalog policy block-test-skips, version 0.1.0, labelled blocks on Claude Code.

What it does

Blocks newly added test skips, focus markers and runner options that hide tests: pytest/unittest skips, non-strict xfail, importorskip; JS skip/only/todo/fixme, x/f prefixes; JUnit Disabled/Assume; Go Skip, Short(); Rust ignore; RSpec, PHPUnit, C#, Swift skips; --deselect/-k not, collect_ignore, jest testPathIgnorePatterns. Runs: commit, agent write, turn's end; only additions judged. Friction: computed names evade it. Waiver: 'chock: allow test-skip' same line; agent: only if in HEAD.

On each agent

AgentLabelWhat it does there
Claude CodeBlocksBlocks on an agent's file writes and at turn end
CursorBlocksBlocks on an agent's file writes and at turn end
CodexBlocksBlocks on an agent's file writes and at turn end. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)
GitHub CopilotBlocksBlocks at turn end only. It does not check a file write when it happens. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)
DevinBlocksBlocks at turn end only. It does not check a file write when it happens. If the hook errors, the action goes through (vendor docs only, not witnessed)
GrokNot gradedNot graded yet for Grok
gooseNot gradedNot graded yet for goose
AntigravityNot gradedNot graded yet for Antigravity
OpenHandsNot gradedNot graded yet for OpenHands
Kimi CodeNot gradedNot graded yet for Kimi Code
Factory DroidNot gradedNot graded yet for Factory Droid

What it misses

This policy does not state what it misses.

Examples from its eval suite

Refused: A failing pytest test is marked @pytest.mark.skip.

Allowed: A doc page about testing shows @pytest.mark.skip in an example.

More

Built from engine 5a4b6287a46e and catalog 1e60d211c1bb.