From de99b1fbbfc5770da758d2810b99afa5acad3285 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 24 Apr 2026 11:49:20 +0200 Subject: [PATCH] Improve AGENTS.md (#37382) Adds points to `AGENTS.md` how to run single tests because AIs get these wrong too often (either they trigger the whole suite or run into other errors). --- This PR was written with the help of Claude Opus 4.7 --------- Signed-off-by: silverwind Co-authored-by: Claude (Opus 4.7) --- AGENTS.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 6c7e50fea4f..cf8b1539451 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,6 +2,9 @@ - Run `make fmt` to format `.go` files, and run `make lint-go` to lint them - Run `make lint-js` to lint `.ts` files - Run `make tidy` after any `go.mod` changes +- Run single go unit tests with `go test -tags 'sqlite sqlite_unlock_notify' -run '^TestName$' ./modulepath/` +- Run single go integration tests with `make 'test-sqlite#TestName/Subtest'` +- Run single playwright e2e test files with `GITEA_TEST_E2E_FLAGS='' make test-e2e` - Add the current year into the copyright header of new `.go` files - Ensure no trailing whitespace in edited files - Never force-push, amend, or squash unless asked. Use new commits and normal push for pull request updates