I tried using testWithJUnit4Rule from a non-kmp an...
# testballoon
d
I tried using testWithJUnit4Rule from a non-kmp android only unit test, and the IDE doesn't seem to see the function at all... (probably because it's under kmp androidMain and I'm in unitTest in a com.android.application...), is there any way to get it @Oliver.O?
o
Yes tests must always be in a test source set.
d
They are... but not in a kmp androidHostTest, but rather in a regular unitTest in a com.android.application module. The tests are working, just the function isn't available. I'm trying to find a workaround for robolectric, but i was hoping to use the new junitrule adapter you made.
o
Is the function available in your unitTest module?
I guess I can reproduce what you were seeing. It seems that local (host-based / unit) tests currently run via JUnit platform instead of JUnit 4. That should change to pure JUnit 4 instead. I'll track this down and post updates on that. Hopefully, I can look deeper into that sometime next week.