kotlin-dsl-samples icon indicating copy to clipboard operation
kotlin-dsl-samples copied to clipboard

sample project that demonstrates how you can test your custom build with a JUnit5 test

Open abendt opened this issue 6 years ago • 1 comments
trafficstars

Context

While learning how to use the Kotlin DSL for Gradle I found the samples to be immensely helpful. However I missed a sample that demonstrated how to unit-test your custom logic in buildSrc with. I think other users also could benefit from some this sample.

#1087

Note: this is a continuation of https://github.com/gradle/kotlin-dsl/pull/1302

Contributor Checklist

  • [x ] Base the PR against the develop branch
  • [x ] Make sure that all commits are signed off to indicate that you agree to the terms of Developer Certificate of Origin.
  • [ ] Provide integration tests to verify changes from a user perspective
  • [x] Provide unit tests to verify logic
  • [ ] Ensure that tests pass locally: ./gradlew check --parallel

abendt avatar Jan 20 '19 13:01 abendt

The example is great! My only question is: why should I google is out as a PR instead of one of official Kotlin DSL samples?

alexvas avatar Nov 04 '19 09:11 alexvas