assertj-generator-gradle-plugin icon indicating copy to clipboard operation
assertj-generator-gradle-plugin copied to clipboard

Process `main` source set only

Open remal opened this issue 1 year ago • 1 comments

We have different kinds of tests in our project:

  • unit - test source set
  • integration - integrationTest source set
  • functional - functionalTest
  • etc

How can we process main source set only?

remal avatar Apr 15 '24 01:04 remal

This seems like it'd be fairly trivial to update the path: https://github.com/assertj/assertj-generator-gradle-plugin/blob/main/src/main/kotlin/org/assertj/generator/gradle/AssertJGeneratorGradlePlugin.kt#L46-L47

We'd likely need to create a new Extension that is applied to each Project, i.e. https://docs.gradle.org/current/userguide/implementing_gradle_plugins_binary.html#capturing_user_input_to_configure_plugin_runtime_behavior

We probably should only look at main by default. I think that it was an oversight on my behalf to look at more source sets.

Nava2 avatar Apr 15 '24 20:04 Nava2