Skip to content

docs: add test anti-pattern reference - #31277

Merged
nwparker merged 4 commits into
mainfrom
nwparker/test-antipatterns-reference
Oct 21, 2026
Merged

nwparker merged 4 commits into
mainfrom
nwparker/test-antipatterns-reference

Conversation

@nwparker

@nwparker nwparker commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​18 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​18

ELI5

Add a concise list of test anti-patterns that create false confidence or waste time.

What Changed

Add docs/reference/test-antipatterns.md, combining and deduplicating the requested OpenClaw and Gjalla audit guidance, plus real-time waits. Qualify duplicated tests as those adding no unique coverage, faster feedback, or better failure diagnosis. Allow the document through .gitignore and fix a missing blank line in AGENTS.md that failed CI formatting.

Why

Keep a short reference for spotting junk tests without loading an audit workflow.

Linked Issue

Maintainer-requested documentation; no linked issue.

Visual Proof

N/A — documentation only.

Testing

Formatting and git diff --check pass locally. Full applicable CI checks will run before merge. Runtime tests are unnecessary for documentation and a Git ignore exception.

Review

Self-reviewed the list and addressed the duplication comment while preserving tests with unique coverage or diagnostic value.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer material is copied.

Notes

No runtime, platform, SSH, mobile, or wire compatibility changes.

Checklist

  • Small and focused; change and rationale explained.
  • Visual proof marked N/A.
  • Self-reviewed; cross-platform and remote impact considered.
  • Local formatting checked; applicable CI must pass before merge. Typecheck, tests, and build follow CI selection for this documentation-only change.

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 10e67352-661b-46e9-b0a6-5f4e7cdcd5e7
📥 Commits

Reviewing files that changed from the base of the PR and between 1326ef11933d79861cfad8a0d42d131f8ddae59c and 139874d.

📒 Files selected for processing: 2
  • AGENTS.md
  • docs/reference/test-antipatterns.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

📝 Walkthrough

The change adds a reference document that lists test anti-patterns, including weak assertions, excessive mocking, inaccurate fixtures, ineffective persistence checks, unreachable conditions, and nondeterministic waits. It also adds a .gitignore exception so the document is tracked and adds spacing under the “Avoid Comments” heading in AGENTS.md.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 13987

No actionable merge-blocking risk remains in this documentation-only change.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: adding a test anti-pattern reference document.
Description check Passed The description covers the change, rationale, testing, visual proof, review, scope, and checklist. It does not provide a linked issue, but it identifies the work as maintainer-requested, which may qua…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description covers the change, rationale, testing, visual proof, review, scope, and checklist. It does not provide a linked issue, but it identifies the work as maintainer-requested, which may qualify for the template's maintainer exception.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 151b48da-b828-4bae-9554-df8e1016af13
📥 Commits

Reviewing files that changed from the base of the PR and between c93514d and 1326ef11933d79861cfad8a0d42d131f8ddae59c.

📒 Files selected for processing: 2
  • .gitignore
  • docs/reference/test-antipatterns.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

Comment thread docs/reference/test-antipatterns.md Resolved
@nwparker
nwparker force-pushed the nwparker/test-antipatterns-reference branch from 0345b8f to 139874d Compare October 21, 2026 00:20
@nwparker
nwparker merged commit ceb2a6c into main Oct 21, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant