From bbb5681a64e13772c64f5c8de86f0bc80bd50375 Mon Sep 17 00:00:00 2001 From: Ferdy Rodriguez Date: Wed, 29 May 2024 10:47:12 +0200 Subject: [PATCH] testing log in test --- app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt | 2 +- build.gradle.kts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt b/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt index ee3565db55..3d020ff92e 100644 --- a/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt +++ b/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt @@ -215,7 +215,7 @@ class DateExtensionsTest { // System.out.println("Overdue text: ${date.toOverdueOrScheduledUiText(resourceManager, currentDate)}") val label = date.toOverdueOrScheduledUiText(resourceManager, currentDate, true) System.out.println("FERDY: $label") - // assert(date.toOverdueOrScheduledUiText(resourceManager, currentDate, true) == "In 30 days") + assert(date.toOverdueOrScheduledUiText(resourceManager, currentDate, true) == "In 30 days") } @Test diff --git a/build.gradle.kts b/build.gradle.kts index b1783fea56..9b0e402282 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -116,5 +116,10 @@ tasks.register("clean", Delete::class) { delete(rootProject.buildDir) } +tasks.withType { + testLogging { + events("standardOut", "started", "passed", "skipped", "failed") + } +}