-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow third parties to provide a custom ClasspathScanner
implementation
#3628
Comments
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. |
sbrannen
changed the title
Configurable ClasspathScanner
Allow third parties to provide a custom Jan 4, 2024
ClasspathScanner
implementation
SGTM. Let's put that interface in the |
1 task
Team decision: Let's follow the proposal but wait for #3630 to be done first. |
6 tasks
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: