Vaibhav Jaiswal
09/11/2024, 6:44 PMcommonTest
in a KMP project ?
I'm not able to run via the run icon in Android StudioVaibhav Jaiswal
09/11/2024, 7:03 PM./gradlew test
And i think my test runs, but its does not log any info about the test values
This is my test
test("No of days between two timestamps"){
checkAll<Instant, Instant> { start, end ->
assume { end > start }
val actual = start.daysUntil(end, TimeZone.currentSystemDefault())
//function to test
val result = DateHelpers.daysBetween(start, end)
withClue("actual: $actual, result: $result") {
result shouldBeEqual actual
}
}
}
All i see in console is this
com.medial.app.core.helpers.DateHelpersTest > No of days between two timestamps FAILED
java.lang.AssertionError at DateHelpersTest.kt:39
Caused by: java.lang.AssertionError at DateHelpersTest.kt:39
Caused by: java.lang.AssertionError at DateHelpersTest.kt:28