Hi all, we are using kotest and then I run ```./gr...
# kotest
a
Hi all, we are using kotest and then I run
Copy code
./gradlew iosSimulatorArm64Test
to run test for iOS (I run it on mac). As you can see in screenshots all tests pass, but why is it showing exit code: 1? Is there anything wrong in my setup?
r
I'd start by following the suggestions gradle has given you
c
Try
--info
,
--stacktrace
won't help here
a
the full error log with
--stacktrace
is like this. which I am not sure what it is actually 😅😅😅
--info
showing this
Copy code
>> All tests passed

Specs:   40 passed, 0 failed, 40 total
Tests:   319 passed, 0 failed, 0 ignored, 319 total
Time:    35s
[ExecAsyncHandle :shared:iosSimulatorArm64Test] finished {exitValue=1, failure=null}

> Task :shared:iosSimulatorArm64Test FAILED
Build 3c6523b5-d31d-4499-b040-fdc09edeba9f is closed

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':shared:iosSimulatorArm64Test'.
> :shared:iosSimulatorArm64Test exited with errors (exit code: 1)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.
c
hm
--info
should show way more than just that
a
yeah. there is something like • java.lang.RuntimeException: Configuration 'iosSimulatorArm64TestCompileKlibraries' was resolved during configuration time. • java.lang.RuntimeException: Configuration 'iosSimulatorArm64CompileKlibraries' was resolved during configuration time. and so on when started but it keep successfully running test
btw I am using skie as well KSP (if that is matter)
c
Here's what the output of a task with
--info
should look like
Copy code
> Task :gradle:templates:template-app:linuxX64Test
Caching disabled for task ':gradle:templates:template-app:linuxX64Test' because:
  Caching has been disabled for the task
Task ':gradle:templates:template-app:linuxX64Test' is not up-to-date because:
  No history is available.
Finished generating test XML results (0.0 secs) into: /home/ivan/Projects/opensavvy/playground/gradle/templates/template-app/build/test-results/linuxX64Test
Generating HTML test report...
Finished generating test html results (0.006 secs) into: /home/ivan/Projects/opensavvy/playground/gradle/templates/template-app/build/reports/tests/linuxX64Test
Build 2711f2d2-c8b6-4d9a-b5e8-f1b6c09096ee is closed
a
hmm... I don't have same output like that
🤔 1
anyway I create the issue here https://github.com/kotest/kotest/issues/5053 thank you for the help 😄
s
worth trying 6.0.2 just in case, but I'll check into it
a
As I said in the issue and in the sample https://github.com/albilaga/KotestIssueSample/blob/main/gradle/libs.versions.toml#L15 I am already using 6.0.2
s
ok thanks
👍 1