https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
k

kkovach

01/21/2019, 4:43 PM
I just started messing around with multiplatform and have a little example compiling. I wrote a couple common tests and one is failing. I cannot figure out how to get more info (stdout/stderr) or some kind of logging for my tests. I've spent a bunch of time looking for an example or docs and haven't found anything yet. Any help would be greatly appreciated. Thanks!
t

thana

01/21/2019, 5:09 PM
printl()
works on all platforms
furthermore i had the same issue where the failing test was on JS. I wrote an
expect fun debug()
in
commonTest
, wrote some to the test and in
jsTest
implemented it like
actual fun debug(){ js("debugger;") }
k

kkovach

01/21/2019, 5:39 PM
Wow, sorry. I swear I didn't see the output from println() before. Thanks for the reply and making me try it again. 🙂
Also, thanks for the JS tip.