gradle / exemplar

Discover and verify code samples and services
Apache License 2.0
34 stars 13 forks source link

Feature: Gradle Plugin samples runner #38

Open eriwen opened 5 years ago

eriwen commented 5 years ago

As a Gradle plugin author, I'd like to inject the Gradle plugin under test into the samples test.

Expected Behavior

Provide a GradlePluginSamplesRunner that configures withPluginClasspath() on TestKit.

Current Behavior

Context

There's now 2 plugins that want this. Be cool to provide this.

britter commented 3 years ago

Bonus if this also provides a way to have the samples in a different (documentation) module of the build. This is currently not easily possible and requires some boilerplate and has some limitations. I've done it in one of my pet projects:

Limitations with this approach: