Skip to content

Consolidate duplicate test execution instructions in AGENTS.md#5

Merged
perNyfelt merged 3 commits intobuild_platformfrom
copilot/sub-pr-4
Dec 16, 2025
Merged

Consolidate duplicate test execution instructions in AGENTS.md#5
perNyfelt merged 3 commits intobuild_platformfrom
copilot/sub-pr-4

Conversation

Copy link
Contributor

Copilot AI commented Dec 16, 2025

The reviewer identified three redundant statements about running ./gradlew test across lines 25, 26, and 36 in AGENTS.md.

Changes

  • Testing Guidelines (line 26): Enhanced to read "Always run ./gradlew test after completing a task to validate changes" — merges intent from both duplicates
  • Implementation Guidelines (line 36): Removed "Always run ./gradlew test when a task is finished to validate changes" — eliminates redundancy

Result: Two distinct, non-overlapping instructions remain:

  1. Run tests before pushing (line 25)
  2. Run tests after completing a task (line 26)

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: perNyfelt <13261538+perNyfelt@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback on 'Build platform' pull request Consolidate duplicate test execution instructions in AGENTS.md Dec 16, 2025
Copilot AI requested a review from perNyfelt December 16, 2025 22:00
@perNyfelt perNyfelt marked this pull request as ready for review December 16, 2025 22:04
Copilot AI review requested due to automatic review settings December 16, 2025 22:04
@perNyfelt perNyfelt merged commit 96e6f31 into build_platform Dec 16, 2025
@perNyfelt perNyfelt deleted the copilot/sub-pr-4 branch December 16, 2025 22:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR attempts to consolidate duplicate test execution instructions in AGENTS.md by removing redundancy from the Implementation Guidelines section and adding a new instruction to the Testing Guidelines section. While the removal of the duplicate at line 36 is beneficial, the consolidation inadvertently creates a new redundancy by adding line 26 adjacent to line 25, both of which instruct developers to run tests at similar points in their workflow.

Key changes:

  • Added "Always run ./gradlew test after completing a task to validate changes" to Testing Guidelines (line 26)
  • Removed duplicate instruction from Implementation Guidelines section (formerly line 36)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- JUnit Jupiter is configured; place specs under `module/src/test/groovy` with `*Test.groovy` naming.
- Keep UI-heavy code factored so logic can be unit-tested without displays; use resource fixtures already present for rendering assertions.
- Run `./gradlew test` before pushing; add focused tests when altering IO, clipboard, or rendering behaviors.
- Always run `./gradlew test` after completing a task to validate changes.
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

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

This new instruction creates redundancy with line 25. Line 25 already instructs developers to "Run ./gradlew test before pushing", which implicitly covers running tests after completing a task. Having both lines 25 and 26 provides two nearly identical instructions in adjacent lines within the same section. Consider removing this line to keep the Testing Guidelines section concise, as the guidance is already covered by the "before pushing" instruction on line 25.

Suggested change
- Always run `./gradlew test` after completing a task to validate changes.

Copilot uses AI. Check for mistakes.
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.

3 participants