From dc34d5e6d7bd52a2d14fa60b9afafa6f7aad3e9e Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sun, 18 Aug 2024 01:53:27 +0200 Subject: [PATCH] disable useJUnitPlatform for JUnit 4 --- .github/workflows/ci.yml | 2 +- parse/build.gradle | 13 +++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index baffb3e8..7d0f3d54 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,7 @@ jobs: path: ~/.gradle/wrapper key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} - name: Run tests - run: ./gradlew --no-daemon clean jacocoTestReport --info + run: ./gradlew --no-daemon clean jacocoTestReport - name: Upload code coverage uses: codecov/codecov-action@v4 with: diff --git a/parse/build.gradle b/parse/build.gradle index 45c0b5f8..9935bdc8 100644 --- a/parse/build.gradle +++ b/parse/build.gradle @@ -85,13 +85,18 @@ tasks.withType(Test) { jacoco.includeNoLocationClasses = true jacoco.excludes = ['jdk.internal.*'] testLogging { - events "failed" + events "PASSED", "SKIPPED", "FAILED" + showStandardStreams true + showExceptions true + showCauses true + showStackTraces true + exceptionFormat "full" } } -tasks.withType(Test) { - useJUnitPlatform() -} +// tasks.withType(Test) { +// useJUnitPlatform() +// } jacocoAndroidUnitTestReport { csv.enabled false