Skip to content

Commit 32d3112

Browse files
[Enchancement] Removed dependency between "test" and "jacocoTestReport" (#2935)
As a part of discussions in #2861 there's been determined that CI workflow in Github Actions is excluding a lot of unnecessary task. @nibix created #2913 to address this problem. Most of the unneeded tasks has been already removed in #2861. This PR removes last existing part. @peternied's confirmed removal of dependency in his [comment](#2913 (comment)). This change removes the dependency between "_jacocoTestReport_" and "_test_" tasks. Specifically the dependency that forces to start "_test_" task always when "_jacocoTestReport_" is called. This allows us to always generate coverage report in the end of every task run in "CI" workflow without having to exclude "_test_" task in every single one of them. Unfortunately this will break functionality to create code coverage by starting only "_jacocoTestReport_" task. It looks like this was not used widely and was certainly not used in any of Github Actions Workflows. This will not break creating coverage reports in the end of "_test_" task. Signed-off-by: Pawel Gudel <pawel.gudel@eliatra.com>
1 parent 847f911 commit 32d3112

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ jobs:
5858
cache-disabled: true
5959
arguments: |
6060
${{ matrix.gradle_task }} -Dbuild.snapshot=false
61-
-x test
6261
6362
- name: Coverage
6463
uses: codecov/codecov-action@v3

build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,6 @@ tasks.withType(JavaCompile) {
398398
}
399399

400400
tasks.test.finalizedBy(jacocoTestReport) // report is always generated after tests run
401-
tasks.jacocoTestReport.dependsOn(test) // tests are required to run before generating the report
402-
403401

404402
allprojects {
405403
tasks.withType(Javadoc).all { enabled = false }

0 commit comments

Comments
 (0)