https://kotlinlang.org logo
#minutest
Title
# minutest
d

dmcg

02/26/2020, 4:35 PM
d

dave08

02/26/2020, 6:06 PM
Not one of those use Minutest... 😉?
d

dmcg

02/26/2020, 11:13 PM
Yes. I was trying to understand how things were done before working out how minutest could help. But my spirit was broken before then.
d

dave08

02/27/2020, 8:39 AM
I think it's better now with androidx test modules and robolectric 4 that joined efforts... but I like minutest's orientation on fixtures (especially with android tests that need quite a bit of setting up...) ... I understand your feelings though. So I suppose you're not really going to try to support it then?
d

dmcg

02/27/2020, 8:42 AM
As with coroutines, I’m nervous of providing support for a thing I don’t really understand, and interested to see if the Minutest model can naturally accommodate the use cases without changing.
Is there any JUnit 5 support for robolectric yet?
If not, there is a JUnit 4 Minutest runner - it would be worth seeing if it just works
d

dave08

02/27/2020, 10:51 AM
I'm not too familiar with these things, but it looks like it should work with 5 even if there's no official extension for it. https://github.com/robolectric/robolectric/issues/3477
d

dmcg

02/27/2020, 10:52 AM
My reading of that was that it works with JUnit 5 running JUnit 4 tests
I seem to recall someone having native JUnit5 working, but it all seemed a lot of faff
d

dave08

02/27/2020, 10:57 AM
I remember that, but I think KoTest is using junit5 for Android and doesn't require all that anymore, see the 'Use' section: https://github.com/kotest/kotest, all it needs is
useJUnitPlatform()
... By the way, does minutest runs side-by-side with existing junit tests?
d

dmcg

02/27/2020, 11:00 AM
Yes, in fact our own tests are a mix. You can have plain JUnit4, plain JUnit5, JUnit5Minutests and JUnit4Minutests (and even our own JUnitPlatform version) in the same test source root
👍🏼 1
8 Views