You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's going on here is a little subtle: the JvmTestSuitePlugin will create a task to report on each test suite present in the project, but doesn't actually create any test suites itself. It is usually applied along with the JavaPlugin, which is responsible for creating the default suite.
You can see this behavior clearly by changing your test method in the example to:
Which then passes. The failure you were originally seeing is because there weren't any test suites created in the project. No suites, no aggregated report tasks.
@nathan-contino - Maybe we can make this part of the docs clearer somehow?
Applying
JacocoReportAggregationPlugin
andJvmTestSuitePlugin
in concert does not create thetestCodeCoverageReport
task.This is opposed to what is described in the documentation:
Expected Behavior
The
testCodeCoverageReport
task is created.Current Behavior
The
testCodeCoverageReport
task is missing.Context
I was trying to follow the documentation and encountered this bug which caused some confusion.
Steps to Reproduce
Here is a bug replicator I made:
https://github.com/Toldry/jacoco-aggregator-plugin-bug-replicator
To reproduce the bug :
You will see the following output:
Your Environment
macOS 12.5.1
Java SDK 8.0.322-librca
Build scan URL:
I cannot provide a build scan.
The text was updated successfully, but these errors were encountered: