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

Simplify tests using GradleRunner.withPluginClassPath() #150

Closed
JLLeitschuh opened this issue Oct 15, 2018 · 0 comments
Closed

Simplify tests using GradleRunner.withPluginClassPath() #150

JLLeitschuh opened this issue Oct 15, 2018 · 0 comments
Assignees
Labels

Comments

@JLLeitschuh
Copy link
Owner

We could significantly simplifies the tests by using the GradleRunner.withPluginClassPath() API as proposed in this github issue comment:
gradle/kotlin-dsl-samples#1178 (comment)

It would let us use the plugins block in our unit tests instead of using the buildScript and then the apply.

This will also allow us to unit test with the Gradle Kotlin DSL. The ktlint accessors would automatically get generated by gradle and we could make sure that the API was what we wanted in our unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants