BTW I wrote a whole series. <http://www.oneeyedmen...
# minutest
d
d
Not one of those use Minutest... 😉?
d
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
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
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
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
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
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
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