gradle-testsets-plugin is a Gradle plugin that helps specifying your custom test sets.

Here, a test set is a logical group of

  • A source set
  • A set of associated dependency configurations
  • A Test task (to run the tests)
  • A Jar task (to package the tests)
  • Optionally, an Artifact
    • An artifact contains the classes and resources of a test set OR test library

Note

If two custom testSet, generated by this plugin have dependency at a resource level (e.g. A’s integrationTest needs the resource of B’s integrationTest), You need to explicitly set B’s integrationTest to publish its artifact and refer it from A’s build script. Otherwise A won’t see the resource of B’s integrationTest.

References