Skip to content

docs: drop hardcoded test-class counts from the review guides - #1886

Merged
lukaszlenart merged 1 commit into
mainfrom
docs/drop-brittle-test-counts
Aug 30, 2026
Merged

docs: drop hardcoded test-class counts from the review guides#1886
lukaszlenart merged 1 commit into
mainfrom
docs/drop-brittle-test-counts

Conversation

@lukaszlenart

Copy link
Copy Markdown
Member

Follow-up to #1885 and #1876.

CLAUDE.md and .github/skills/code-review/SKILL.md each stated how many test classes use the JUnit 3 and JUnit 4 styles. Both were already stale:

SKILL.md CLAUDE.md actual
extends XWorkTestCase ~117 ~114 117
import org.junit.Test ~212 ~210 215
org.junit.jupiter 0 0 0

Both were hedged with "around"/"~", so neither was wrong today. But a count that only moves in one direction, duplicated across two files with nothing watching it, is a drift surface for no benefit — the numbers carry no review weight.

What matters is retained: both styles are current, a new test must match the file it joins, and there are zero org.junit.jupiter imports. That last one is the load-bearing claim and it stays in both files.

The two files serve different consumers — CLAUDE.md for Claude Code, .github/skills/ for GitHub Copilot code review (#1876) — so they are updated in step rather than merged.

Documentation only — no ticket, per the docs: convention in CLAUDE.md. No code, build or CI files touched.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AtyHU8BzNmeZNncXRu7yjB

CLAUDE.md and .github/skills/code-review/SKILL.md each stated how many test
classes use the JUnit 3 and JUnit 4 styles. Both were already stale: the
XWorkTestCase count reads ~114 and 117 against an actual 117, and the
org.junit.Test count reads ~210 and 212 against an actual 215.

The numbers carry no review weight — what matters is that both styles are
current, that a new test must match the file it joins, and that there are
zero org.junit.jupiter imports. That last one is load-bearing and stays.
The class counts only ever move in one direction, in two files, with nothing
watching them, so remove them rather than resync them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AtyHU8BzNmeZNncXRu7yjB
@lukaszlenart
lukaszlenart marked this pull request as ready for review August 30, 2026 15:21
@lukaszlenart
lukaszlenart enabled auto-merge (squash) August 30, 2026 15:21
@lukaszlenart
lukaszlenart merged commit 2e78416 into main Aug 30, 2026
9 of 10 checks passed
@lukaszlenart
lukaszlenart deleted the docs/drop-brittle-test-counts branch August 30, 2026 15:25
@sonarqubecloud

Copy link
Copy Markdown

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