https://kotlinlang.org logo
Title
d

Darius Morar

05/18/2018, 5:58 PM
Take too much time until test is finished...1-5min. If is written in Java take just 1-2 sec
p

pbergson

05/18/2018, 5:59 PM
Do you mean for Junit tests, or for instrumented Android tests?
I definitely do not have that experience for regular unit tests, btw.
2
d

Darius Morar

05/18/2018, 6:00 PM
JUNIT TESTS
a

adams2

05/18/2018, 6:00 PM
instrumented tests use junit too
p

pbergson

05/18/2018, 6:00 PM
sure, but then you can wave your hands and say "jvm runtime slow something something"
h

Hong

05/18/2018, 6:02 PM
paste your code here. for java to finish in 1~2 seconds, it seems you only have 1 or 2 tests?
d

Darius Morar

05/18/2018, 6:03 PM
@Hong is just 1 test
I run just small tests
h

Hong

05/18/2018, 6:03 PM
i have 45 unit tests, it finishes in 1~2 minutes using gradlew test cmd
is your test starts from clean and need to download stuff?
d

Darius Morar

05/18/2018, 6:06 PM
Yes, start from clean and don't need to download something
a

agrosner

05/18/2018, 6:59 PM
I have like 400 tests that take less than a few seconds all kotlin
4
g

gildor

05/19/2018, 2:15 PM
Looks like some specific problem in you case. Maybe you could reproduce this on some sample project