Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move logic into parent class

Reuse logic

    • -0
    • +85
    ./org/gradle/internal/jacoco/AbstractAntJacocoReport.java
Fix indentation

Reuse task logic for JacocoReport and JacocoCheck

    • -0
    • +294
    ./org/gradle/testing/jacoco/tasks/JacocoReportBase.java
  1. … 3 more files in changeset.
Revert change

Reflect use of JacocoCheck task in documentation and sample

  1. … 1 more file in changeset.
Input annotation make sure that requires properties are not null

Extract dedicated task for verifying if coverage metrics are met

Results in better configurability for end user and decouples report generation from coverage verification.

    • -0
    • +148
    ./org/gradle/internal/jacoco/AntJacocoCheck.java
    • -80
    • +17
    ./org/gradle/internal/jacoco/AntJacocoReport.java
    • -0
    • +333
    ./org/gradle/testing/jacoco/tasks/JacocoCheck.java
  1. … 5 more files in changeset.
Document default value for property

Apply input/output annotations

  1. … 1 more file in changeset.
Align terminology with Jacoco configuration options

Makes it easier for users to map configuration options to Jacoco documentation. Aligns the configuration options with Maven plugin and Ant tasks.

    • -12
    • +12
    ./org/gradle/internal/jacoco/AntJacocoReport.java
    • -0
    • +60
    ./org/gradle/testing/jacoco/tasks/rules/JacocoLimit.java
  1. … 6 more files in changeset.
Use String data type instead of enum

Allows for better forward and backward capability in case JaCoCo decides to introduce new values or change existing ones.

  1. … 5 more files in changeset.
Bump up version number

Better IDE support for Closure parameters

Rename field

  1. … 3 more files in changeset.
Renamed fields to better express intention

    • -10
    • +10
    ./org/gradle/internal/jacoco/AntJacocoReport.java
    • -0
    • +132
    ./org/gradle/internal/jacoco/rules/JacocoViolationRuleImpl.java
  1. … 6 more files in changeset.
Set default values for fields as described in Jacoco docs

Renamed property

  1. … 2 more files in changeset.
Add some unit tests

  1. … 3 more files in changeset.
Expose configuration option for disabling rules

  1. … 1 more file in changeset.
Basic support for enforcing Jacoco metrics

    • -0
    • +69
    ./org/gradle/internal/jacoco/rules/JacocoThresholdImpl.java
    • -0
    • +29
    ./org/gradle/testing/jacoco/tasks/rules/JacocoRuleScope.java
    • -0
    • +56
    ./org/gradle/testing/jacoco/tasks/rules/JacocoThreshold.java
    • -0
    • +21
    ./org/gradle/testing/jacoco/tasks/rules/package-info.java
  1. … 7 more files in changeset.
Use better name for additional Jacoco file task output properties

This way we get `jacocoFiles.destinationFile` instead of `$1.jacoco.destinationFile`.

+review REVIEW-6374

Public runtime APIs for mapped plural task output properties

We’ve supported for some time `@OutputFiles` and `@OutputDirectories` properties with a `Map` type, where each output file or directory was mapped to a string identifier. However, this was only available via internal APIs and wasn’t documented. This commit exposes the runtime API via `TaskOutputs.files()` and the new `TaskOutputs.dirs()` methods.

+review REVIEW-6374

  1. … 15 more files in changeset.
Better tests for Jacoco, fix execution data path sensitivity

Jacoco doesn't actually care about the name of the execution data files.

+review REVIEW-6301

  1. … 4 more files in changeset.
Actually cache Jacoco results

We haven't stored them previously. Now we have an integration test to make sure.

+review REVIEW-6301

  1. … 1 more file in changeset.
Make Jacoco tasks relocatable

+review REVIEW-6301

  1. … 1 more file in changeset.
Revert "Remove duplicated code in JacocoPlugin (#692)"

We finally decided not to include this change since

the code was not duplicated completely and the

change did not improve readability

This reverts the commits

- 79c3c699ab6f17f8e011017f5e6ab19457a26bd8

- 68e9485290cf632aa2e0bb44d92ac72b2529c81b

- b20352f231d50262f3601889c296f149f40ebbf6

+review REVIEW-6202

Enable caching for code quality tasks

This also required reverting the nested approach introduced recently to track output files for enabled reports in reporting tasks. Instead, we are back to iterating the output files and directories and enabled report names in the container.

+review REVIEW-6243

  1. … 21 more files in changeset.
Mark classpaths as `@Classpath`

Instead of annotating with `@InputFiles` and `@OrderSensitive`, we now have only `@Classpath`.

This also enables relative path normalization for every classpath property.

+review REVIEW-6241

    • -4
    • +2
    ./org/gradle/testing/jacoco/tasks/JacocoBase.java
  1. … 32 more files in changeset.
Refactor code for mapping the destination jacoco report dir

+review REVIEW-6202

#692