Skip to content

Commit 6749181

Browse files
committed
build: move coverage reports to jacoco-report-aggregation
1 parent 3e1e995 commit 6749181

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

buildspec/linuxTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ phases:
3535
fi
3636
3737
- chmod +x gradlew
38-
- su codebuild-user -c "./gradlew -PideProfileName=$ALTERNATIVE_IDE_PROFILE_NAME check coverageReport --info --console plain --continue"
38+
- su codebuild-user -c "./gradlew -PideProfileName=$ALTERNATIVE_IDE_PROFILE_NAME check testCodeCoverageReport --info --console plain --continue"
3939
- su codebuild-user -c "./gradlew -PideProfileName=$ALTERNATIVE_IDE_PROFILE_NAME buildPlugin"
4040
- VCS_COMMIT_ID="${CODEBUILD_RESOLVED_SOURCE_VERSION}"
4141
- CI_BUILD_URL=$(echo $CODEBUILD_BUILD_URL | sed 's/#/%23/g') # Encode `#` in the URL because otherwise the url is clipped in the Codecov.io site

coverage-report/build.gradle.kts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import kotlin.io.extension
2+
3+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4+
// SPDX-License-Identifier: Apache-2.0
5+
6+
plugins {
7+
base
8+
id("jacoco-report-aggregation")
9+
}
10+
11+
dependencies {
12+
jacocoAggregation(project(":plugin-toolkit:intellij-standalone"))
13+
jacocoAggregation(project(":plugin-core"))
14+
jacocoAggregation(project(":plugin-amazonq"))
15+
16+
project.findProject(":plugin-toolkit:jetbrains-gateway")?.let {
17+
jacocoAggregation(it)
18+
}
19+
20+
jacocoAggregation(project(":ui-tests"))
21+
}
22+
23+
reporting {
24+
reports {
25+
val testCodeCoverageReport by creating(JacocoCoverageReport::class) {
26+
testType = TestSuiteType.UNIT_TEST
27+
}
28+
}
29+
}

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ include("detekt-rules")
9898
include("ui-tests")
9999
include("sandbox-all")
100100
include("ui-tests-starter")
101+
include("coverage-report")
101102
when (providers.gradleProperty("ideProfileName").get()) {
102103
// FIX_WHEN_MIN_IS_242: `tmp-all` test module no longer needed in 242+
103104
"2023.3", "2024.1" -> {

0 commit comments

Comments
 (0)