Skip to content
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

AndroidJUnit4 vs Robolectric test runner #110

Closed
jaredsburrows opened this issue Jan 18, 2025 · 3 comments
Closed

AndroidJUnit4 vs Robolectric test runner #110

jaredsburrows opened this issue Jan 18, 2025 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@jaredsburrows
Copy link

Should this repo be looking to support AndroidJUnit4 in the future?

Source: https://cs.android.com/androidx/android-test/+/main:ext/junit/java/androidx/test/ext/junit/runners/AndroidJUnit4.java;l=55?q=AndroidJUnit4

Robolectric docs: https://robolectric.org/androidx_test/#testrunner

@warnyul
Copy link
Member

warnyul commented Jan 24, 2025

@jaredsburrows This repository is unrelated to JUnit 4. It’s actually an experimental JUnit 5 extension. If your project uses JUnit 4, this extension won’t be necessary for your setup. Let me know if you have any other questions!

@warnyul warnyul added the question Further information is requested label Jan 24, 2025
@warnyul warnyul self-assigned this Jan 24, 2025
@jaredsburrows
Copy link
Author

Based on the Robolectric documentation, AndroidJUnit4 test runner supercedes Roboletric test runner.

Is this repo only a proof of concept to get Robolectric working with JUnit 5?

@warnyul
Copy link
Member

warnyul commented Jan 25, 2025

Yes, this is a poc repo for JUnit5, because there is no official support for JUnit 5 yet in Roboloctric.

Under the hood AndroidJUnit4 also uses RobolectricTestRunner. What do you mean? Why this repo should support AndroidJUnit4?

@warnyul warnyul closed this as completed Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants