Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Gradle TestKit Support Plugin for testing #456

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

runningcode
Copy link
Contributor

@runningcode runningcode commented Feb 17, 2025

This uses some of the convenience provided by using Tony's Gradle TestKit Support Plugin.

The goal of this change is to allow us to rewrite some of the tests to
stop using GradleRunner.withPluginClasspath(). See point #1 in the
above readme or for more information on issues with withPluginClasspath see these issues: gradle/gradle#28285
gradle/gradle#22466

I believe that the mixing of the classpath is causing some tests to succeed even though they should fail. We shall see. Either way this PR has revealed that this is a problem.

This uses some of the convenience provided by using [Tony's Gradle TestKit
Support
Plugin.](https://github.com/autonomousapps/dependency-analysis-gradle-plugin/tree/main/testkit)
The goal of this change is to allow us to rewrite some of the tests to
stop using `GradleRunner.withPluginClasspath()`. See point #1 in the
above readme.
Copy link
Contributor Author

runningcode commented Feb 17, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@runningcode runningcode merged commit 6963efb into main Feb 17, 2025
15 checks passed
@runningcode runningcode deleted the no/use_gradle_testkit_support_plugin_for_testing branch February 17, 2025 19:41
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