From 9be510d43f8d7f0f08e1633f6a67470a7e145d82 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 15 Nov 2023 21:56:18 +0000 Subject: [PATCH] [Backport 2.x] Ensures that jacoco test report is produced after integration test task completes (#3714) Backport 5b7531941cca59673aa3e809b0afe3c20dae86d9 from #3662. Signed-off-by: Darshit Chanpura Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle b/build.gradle index 7ac7b4f2fd..5d66c030bb 100644 --- a/build.gradle +++ b/build.gradle @@ -548,6 +548,8 @@ task integrationTest(type: Test) { shouldRunAfter test } +tasks.integrationTest.finalizedBy(jacocoTestReport) // report is always generated after integration tests run + //run the integrationTest task before the check task check.dependsOn integrationTest