From 3768b8ca0221e725e668d7154cd15648603b44c4 Mon Sep 17 00:00:00 2001 From: sneak Date: Sun, 22 Feb 2026 16:56:03 +0100 Subject: [PATCH] Add rule: all software repos must have tests Require at least minimal tests (e.g. import/compile check) using the platform-standard test framework. make test must never be a no-op. --- prompts/REPO_POLICIES.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/prompts/REPO_POLICIES.md b/prompts/REPO_POLICIES.md index cec78a2..44a57bb 100644 --- a/prompts/REPO_POLICIES.md +++ b/prompts/REPO_POLICIES.md @@ -62,6 +62,12 @@ style conventions are in separate documents: `make lint && make fmt-check`. The Makefile should provide a `make hooks` target to install the pre-commit hook. +- All repos with software must have tests that run via the platform-standard + test framework (`go test`, `pytest`, `jest`/`vitest`, etc.). If no meaningful + tests exist yet, add the most minimal test possible — e.g. importing the + module under test to verify it compiles/parses. There is no excuse for + `make test` to be a no-op. + - `make test` must complete in under 20 seconds. Add a 30-second timeout in the Makefile.