You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Jupiter and Vintage engines use org.junit.platform.commons.util.ClasspathScanner to discover test classes in the classpath. The ClasspathScanner scans directories and looks for class files. It works fine for a standard JVM process; however, it needs to be customized for a specific environment such as Android.
A possible solution for this is to make the ClasspathScanner an interface and load the implementation via the ServiceLoader mechanism.
Thanks for the proposal! It'd be awesome to get Jupiter and Vintage working out-of-the-box on Android. I'll discuss it with the team and will get back to you.
The Jupiter and Vintage engines use
org.junit.platform.commons.util.ClasspathScanner
to discover test classes in the classpath. TheClasspathScanner
scans directories and looks for class files. It works fine for a standard JVM process; however, it needs to be customized for a specific environment such as Android.A possible solution for this is to make the
ClasspathScanner
an interface and load the implementation via theServiceLoader
mechanism.Then, we could provide the Android-specific implementation with
androidx.test.internal.runner.ClassPathScanner
, for example.This change would make the Jupiter and Vintage engines work in Android.
The text was updated successfully, but these errors were encountered: