chore(claude): auto-register new integration tests in test suites#35644
Conversation
Adds step 6c to the gh-issue-troubleshoot command: after writing any new test file under dotcms-integration/src/test/java/, the skill detects its JUnit version and inserts the class into the appropriate suite (Junit5Suite1 for JUnit 5, or the least-loaded MainSuite* for JUnit 4). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
❌ Issue Linking RequiredThis PR could not be linked to an issue. All PRs must be linked to an issue for tracking purposes. How to fix this:Option 1: Add keyword to PR body (Recommended - auto-removes this comment)
Why is this required?Issue linking ensures proper tracking, documentation, and helps maintain project history. It connects your code changes to the problem they solve.--- This comment was automatically generated by the issue linking workflow |
|
Claude finished @dsilvam's task in 1m 59s —— View job Review
FindingsThis is a docs/skill-prompt change to 1. Trailing-comma bug in the append instruction (will produce non-compiling Java). Naively appending 2. No idempotency / duplicate check. 3. "Alphabetical import insertion" doesn't match reality. 4. JUnit version heuristic is brittle for non-obvious cases.
5. "Least-loaded" counting method is unspecified. 6. Excluded suites aren't justified. 7. Ordering nit: numbering churn. 8. Minor: trailing blank line added at line 245 (between "If Nothing here is unsafe at runtime — worst case the skill produces a broken edit a human reviews before commit — but #1 will reliably break the JUnit 5 suite on the first real use, and #2 is a foot-gun on re-runs. |
Summary
gh-issue-troubleshootslash commanddotcms-integration/src/test/java/, the skill now automatically detects the JUnit version and registers the class in the correct suite fileJunit5Suite1.java(@SelectClasses)MainSuite1a/1b/2a/2b/3a(@SuiteClasses), keeping CI load balancedimport(alphabetically) and theClassName.class,entry; warns and skips if the package can't be determinedTest plan
/gh-issue-troubleshooton an issue that requires a new integration test and verify the suite file is updated automaticallyJunit5Suite1.java🤖 Generated with Claude Code