Skip to content

Refactor plugin integration tests - #82

Merged
kaklakariada merged 13 commits into
mainfrom
refactor-plugin-integration-tests
Aug 20, 2026
Merged

Refactor plugin integration tests#82
kaklakariada merged 13 commits into
mainfrom
refactor-plugin-integration-tests

Conversation

@kaklakariada

@kaklakariada kaklakariada commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

This reduces code duplication and improves maintainability of plugin integration tests

@kaklakariada
kaklakariada requested a lite review from Copilot August 20, 2026 18:26

Copilot AI left a comment

Copy link
Copy Markdown

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 refactors the Gradle plugin integration tests by extracting common Gradle TestKit setup/execution and assertions into a reusable fixture, reducing duplication across the main plugin test suite.

Changes:

  • Introduce PluginTestFixture to centralize GradleRunner configuration, execution, and common assertions (task outcomes, output, report-file content).
  • Update OpenFastTracePluginTest to use the fixture for running builds and asserting outcomes/report contents.
  • Update housekeeping files (CHANGELOG.md, .gitignore) to reflect the PR and ignore additional Eclipse settings.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/test/java/org/itsallcode/openfasttrace/gradle/PluginTestFixture.java New shared integration-test fixture wrapping Gradle TestKit runs and assertions.
src/test/java/org/itsallcode/openfasttrace/gradle/OpenFastTracePluginTest.java Refactor existing integration tests to use PluginTestFixture.
CHANGELOG.md Add entry for PR #82.
.gitignore Ignore additional Eclipse preference files.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sonarqubecloud

Copy link
Copy Markdown

@kaklakariada
kaklakariada merged commit e2920c7 into main Aug 20, 2026
8 of 9 checks passed
@kaklakariada
kaklakariada deleted the refactor-plugin-integration-tests branch August 20, 2026 18:42
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.

2 participants