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

Explain Ravenwood project relationships #9016

Open
eugene-krivobokov opened this issue Apr 22, 2024 · 1 comment
Open

Explain Ravenwood project relationships #9016

eugene-krivobokov opened this issue Apr 22, 2024 · 1 comment

Comments

@eugene-krivobokov
Copy link

Hi! There is Ravenwood project: https://android.googlesource.com/platform//frameworks/base/+/refs/heads/main/ravenwood

It seems to aim to be a partial or complete alternative to Robolectric. It'd be nice to shed some light regarding it from Robolectric side.

@hoisie
Copy link
Contributor

hoisie commented Apr 22, 2024

Hi @eugene-krivobokov,

disclaimer - I am not on the Android platform team, so I cannot speak on behalf of them :)

I think the Ravenwood README.md provides a good overview and comparison to Robolectric (the italicized parts). If you read the doc, you can see the criticism of Robolectric, and why it has historically not been sanctioned for use within the Android platform sources.

Although the Android platform wants to experiment with hostside testing for increased performance, Robolectric unfortunately has a lot of legacy shadows and a lot legacy design constraints that the Android platform doesn't necessarily want to inherit.

I believe Ravenwood is a greenfield project that allows the benefits of hostside testing for Android platform sources, but is highly tuned to the needs of the Android platform teams, and is highly integrated into their development tooling and organizational structure.

I am personally happy to see the Ravenwood project, as it will help to ensure that the Android framework will continue to work on the JVM, and there may be opportunities to collaborate (i.e. improve support for libandroid_runtime (graphics, sqlite, etc..) on host, standardized bytecode instrumentation, etc..).

We are still investing a lot into Robolectric as it is more targeted for Android app developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants