https://kotlinlang.org logo
#kotest
Title
# kotest
a

Alex Kuznetsov

10/10/2023, 6:18 PM
I've cloned kotest, and trying to run unit tests on my Mac as follows:
./gradlew clean build
which blows up like this:
Copy code
xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH
e: Compilation failed: An error occurred during an xcrun execution. Make sure that Xcode and its command line tools are properly installed.
Failed
All I need to do is run unit tests, and I do not care about IOs at this time. I do have xcode installed, and I did search this channel and stackoverflow. What am I missing? TIA!
1
a

Adam S

10/10/2023, 8:21 PM
Try adding
jvmOnly=true
in gradle.properties. It's not documented, but it should disable all Native and Js targets. It's useful for quicker development. https://github.com/kotest/kotest/blob/c32ca997517a6f7f02302913eb6a5cd00f044c69/buildSrc/src/main/kotlin/kotest-native-conventions.gradle.kts#L8
👍 2
a

Alex Kuznetsov

10/11/2023, 4:52 PM
this did work - thanks a lot @Adam S
👍 1
4 Views