docs: require tests for new or changed behavior in CONTRIBUTING.md #862

Merged
hexajon merged 1 commit from issue-502-contributing-tests-required into main 2026-10-21 15:48:42 +00:00
Owner

Summary

What was wrong

CONTRIBUTING.md did not say that new or changed behavior needs tests. The Testing section bans t.Skip() and //nolint. The Pull Request Guidelines require a green gate. No line asked for tests on new behavior. This is also the open item for the OpenSSF Best Practices criterion tests_documented_added.

What changed

I added one line to the "Pull Request Guidelines" list in CONTRIBUTING.md. It says that new or changed behavior comes with tests in the automated suite (go test ./...). It also says that a fix adds a test that fails without the fix.

No code changed. The diff is one added line in one file.

Tests

This is a docs-only change, so it adds no tests.

Refs #502

./scripts/gate.sh passes on this commit.

Closes #502

## Summary ## What was wrong `CONTRIBUTING.md` did not say that new or changed behavior needs tests. The Testing section bans `t.Skip()` and `//nolint`. The Pull Request Guidelines require a green gate. No line asked for tests on new behavior. This is also the open item for the OpenSSF Best Practices criterion `tests_documented_added`. ## What changed I added one line to the "Pull Request Guidelines" list in `CONTRIBUTING.md`. It says that new or changed behavior comes with tests in the automated suite (`go test ./...`). It also says that a fix adds a test that fails without the fix. No code changed. The diff is one added line in one file. ## Tests This is a docs-only change, so it adds no tests. Refs #502 `./scripts/gate.sh` passes on this commit. Closes #502
docs: require tests for new or changed behavior in CONTRIBUTING.md
All checks were successful
drift / govulncheck (pull_request) Has been skipped
drift / forgejo-smoke (pull_request) Has been skipped
drift / surface-diff (pull_request) Successful in 33s
drift / govulncheck (push) Has been skipped
drift / surface-diff (push) Successful in -43s
drift / forgejo-smoke (push) Has been skipped
ci / gate (push) Successful in 23m35s
ci / gate (pull_request) Successful in 37m4s
a82970ea72
Refs #502
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sixfold-space/madtea!862
No description provided.