Question: How do you use the test report aggregati...
# community-support
k
Question: How do you use the test report aggregation plugin with the Kotlin multiplatform plugin? In my aggregation project, I have
Copy code
dependencies {
  testReportAggregation("...") // coordinates of the KMP included build
}
which is normal, but I get an error saying
Copy code
> Could not resolve all dependencies for configuration ':aggregation:testing:aggregateTestReportResults'.
   > The consumer was configured to find a component of category 'verification', as well as attribute 'org.gradle.testsuite.name' with value 'test', attribute 'org.gradle.verificationtype' with value 'test-results'.
Which is weird, since I get test reports from my KMP included build by running
allTests
and
jvmTests
, as expected.
v
As far as I remember, the KMP plugin does not yet integrate with / use the JVM Test Suites plugin (which is still incubating). But the Test Report Aggregation plugin can only aggregate by requesting some variants with the sources and the test results that are registered by the JVM Test Suites plugin for the registered Test Suites. You should still be able to use the Test Report Aggregation plugin, but not out-of-the-box. You need to declare the respective variants that the JVM Test Suites plugin would have declared and are exepected / required by the Test Report Aggregation plugin. Once those variants are properly configured in the to-be-aggregated projects, for example using some convention plugin, the Test Report Aggregation plugin should be usable as expected.