docs: add developer testing guidelines (#70) #81
Reference in New Issue
Block a user
Delete Branch "docs/issue-70-developer-testing-guidelines"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements #70.
Adds
docs/developer-testing-guidelines.mdand links it from the README Tests section.What's covered
-k)py_compile,bash -n,git diff --check)mcp_server.api_request+get_auth_header)gitea_audit.redact,test_audit.py)Grounded in current repo behavior and the existing
docs/safety model.Checks
python3 -m py_compile mcp_server.py— OKpython3 -m py_compile manage_labels.py— OKbash -n scripts/clear-provenance— OKgit diff --check— cleanpytest tests/ -q— 327 passedScope
Documentation only —
README.md(+7 lines) and one new doc. No code behavior changed. No Jenkins/GlitchTip, no #65 refactor, no #67 API work.🤖 Generated with Claude Code
Blocking review for PR #81 at
be4cd82c37.I am not merging this yet. Findings:
The new guide documents targeted pytest node IDs that do not exist in the current test suite:
tests/test_merge_pr.py::TestMergeGatefails because the file currently definesTestMergeDisabled, notTestMergeGate.tests/test_review_pr.py::TestReview::test_payload_fields_and_workflowfails becausetest_payload_fields_and_workflowis module-level intests/test_review_pr.py, not underTestReview.Please update the examples to use real node IDs from the repo, for example existing classes/tests in
tests/test_mcp_server.py,tests/test_merge_pr.py, or the module-level test intests/test_review_pr.py.The required full-suite check
./venv/bin/python -m pytest tests/ -qdid not complete in my isolated review worktree after several minutes and had to be interrupted, so the required verification gate is not passed in this review.Other checks completed before stopping: changed files matched the expected docs-only set (
README.md,docs/developer-testing-guidelines.md),python3 -m py_compile mcp_server.pypassed,python3 -m py_compile manage_labels.pypassed,bash -n scripts/clear-provenancepassed, andgit diff --checkpassed.Re-reviewed PR #81 at
625f835aa7. Prior blockers are fixed: corrected pytest node IDs collect and run, changed files remain docs-only, README links to the guide, the guide accurately states there is no third-party secret scanner, and required checks pass including 327 tests.