https://kotlinlang.org logo
Title
l

LeoColman

03/26/2020, 4:48 PM
What gradle version are you using?
t

themishkun

03/26/2020, 4:58 PM
5.6.4
l

LeoColman

03/26/2020, 4:59 PM
Could you please try to upgrade to 6.2.2 or to 6.3 (released this week) and tell us if there's any difference?
t

themishkun

03/26/2020, 5:00 PM
I’ll try that rn
s

sam

03/26/2020, 5:27 PM
It should work with 5.6.4
that error you see is usually when it can't find kotest or junit jupiter or whatever on teh clsasspath
t

themishkun

03/26/2020, 5:32 PM
@LeoColman 6.3 doesn’t seem to work either. Any other tips on how to run kotest in android project?
btw. current kotest version 3.3.2 works fine
just upgrading from that breaks
s

sam

03/26/2020, 6:07 PM
where you using junit4 or 5 previously ?
t

themishkun

03/26/2020, 6:08 PM
junit5 and 4 support in vintage mode
s

sam

03/26/2020, 6:08 PM
with kotlintest were you using the junit5 runner then ?
t

themishkun

03/26/2020, 6:10 PM
yeah. Does it have junit4 version tho?
s

sam

03/26/2020, 6:14 PM
It did
kotest4 doesn't
t

themishkun

03/26/2020, 6:16 PM
where I can find more Info about that?
s

sam

03/26/2020, 6:20 PM
ask me I guess lol
there isn't much docs atm
t

themishkun

03/26/2020, 6:21 PM
kotlintest-runner-junit5
I used this artifact
I guess it have 5 in the name =)
s

sam

03/26/2020, 6:21 PM
yes so it should just work as before
I've asked @LeoColman to help me by creating a sample android project that I can get working on kotest to show as an example
You could help out too if you had time
t

themishkun

03/26/2020, 6:22 PM
well, I can’t even setup it in my project rn, lol
s

sam

03/26/2020, 6:22 PM
No I mean a vanilla android project
I don't do android so I'm not sure how to create a basic hello world view model controller thingy
t

themishkun

03/26/2020, 6:23 PM
maybe it is a junit5 concrete version that messes it up? Any compatability pitfalls here?
s

sam

03/26/2020, 6:39 PM
shouldn't be
you could try specifying the test engine
t

themishkun

03/26/2020, 6:42 PM
Any tools helping to debug test discovery? I have only one test class, maybe there is the way to log why it was ommited by discovery?
s

sam

03/26/2020, 7:19 PM
you can add kotlin.log=true as a system property
t

themishkun

03/26/2020, 7:42 PM
Not sure what you mean by "system property"
s

sam

03/26/2020, 7:44 PM
In your gradle.properties add
org.gradle.kotlin.log=true
t

themishkun

03/26/2020, 9:54 PM
well, it did nothing
s

sam

03/26/2020, 10:04 PM
Let me find out exactly what it is
It's
KOTEST_DEBUG
you can do it as an ENV var or a System Property. So
systemProp.KOTEST_DEBUG=true
in gradle.properties should active the logging
t

themishkun

03/27/2020, 7:31 AM
hmmm, I didn’t find any logs. And my time budget on investigating this is going to the end
so I guess I’ll stay on 3.x for now