JavaProjectUnderTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Extract :jacoco test fixtures

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 9 more files in changeset.
Let jacoco tests not use deprecated configurations

  1. … 1 more file in changeset.
Let jacoco tests not use deprecated configurations

  1. … 1 more file in changeset.
Let jacoco tests not use deprecated configurations

  1. … 1 more file in changeset.
Let jacoco tests not use deprecated configurations

  1. … 1 more file in changeset.
Fix Jacoco to work with build cache

Jacoco code coverage should work well with the build cache out of the

box. Since appending to a coverage file works with parallel test

execution, see https://github.com/jacoco/jacoco/pull/52, we set

`append=true` and delete the coverage data just before the test task

starts to execute.

Note that this is a breaking change: separate tasks now cannot use the

same coverage file, since each of the tasks will delete it.

Issue: #5269

  1. … 7 more files in changeset.
Use mavenCentral() and jcenter() mirrors in tests where possible

  1. … 51 more files in changeset.
Detect overlapping files for cacheable tasks

When two tasks overwrite one another, enforcing overlap detection doesn't

really make sense (because the outcome is the same).

But when two tasks append to a single output file, we should disable caching

because the order of the two tasks executing matters more.

+review REVIEW-6522

  1. … 3 more files in changeset.
Use separate output directories for all JVM languages

- Introduce an outputDir on SourceDirectorySet

- Default output directory is now `build/classes/<source directory set name>/<source set name>`

- Example: Java compilation goes to build/classes/java/main instead of build/classes/main

- Adapt JDepend, FindBugs, Test and ValidateTaskProperties tasks to handle multiple class directories

- Deprecate setClassesDir/getClassesDir on SourceSetOutput

- Calling setClassesDir restores old behavior (shared output directory)

- Introduce addClassesDir and getClassesDirs on SourceSetOutput

- OSGi plugin needs a single classes directory, so introduce 'osgiClasses' task that syncs all classes to a single directory

Most of the changes to integration tests are find classes in their new location. Helper methods in AbstractIntegrationSpec

can locate class files vs hardcoding a path.

Squashed commit of sg-split-jvm-classes branch for REVIEW-6502

  1. … 119 more files in changeset.
Use task name that better expresses intent

  1. … 15 more files in changeset.
Extract dedicated task for verifying if coverage metrics are met

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

  1. … 9 more files in changeset.
Break out method

Add test cases for multiple report tasks

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

    • -0
    • +71
    ./JavaProjectUnderTest.groovy
  1. … 18 more files in changeset.