Skip to content

Commit

Permalink
Set Gradle property to enable Kotlin XML test report (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
petertrr committed Jul 7, 2022
1 parent a245d90 commit 0c7ab49
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,31 +34,17 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-konan-1.7.0
- uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
arguments: |
build
-x detekt
-Porg.gradle.caching=true
-Pdetekt.multiplatform.disabled=true
-PdisableRedundantTargets=true
-PenabledExecutables=debug
-PgprUser=${{ github.actor }}
-PgprKey=${{ secrets.GITHUB_TOKEN }}
# For some reason, running `gradle build jvmTest` produces no JUnit reports,
# so these two targets should be separated into separate steps.
- name: gradle jvmTest
uses: gradle/gradle-build-action@v2
if: ${{ always() }}
with:
gradle-version: wrapper
# The `--continue` flag is necessary so that Gradle keeps going after the 1st test failure.
# The `jvmTest` target is needed for JUnit-style XML reports.
# By default, when test for all MPP targets are executed, Kotlin Gradle Plugin generates a single aggregated HTML report.
# Property `kotlin.tests.individualTaskReports` enables individual Junit-style XML reports.
# See org.jetbrains.kotlin.gradle.testing.internal.KotlinTestReport.
arguments: |
build
--continue
jvmTest
-x detekt
-Pkotlin.tests.individualTaskReports=true
-Porg.gradle.caching=true
-Pdetekt.multiplatform.disabled=true
-PdisableRedundantTargets=true
Expand Down

0 comments on commit 0c7ab49

Please sign in to comment.