-
Notifications
You must be signed in to change notification settings - Fork 859
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
Create an Android regression test #1152
Comments
Update: Perhaps ErrorProne can help. |
Another possibility: the Android SDK ships with a regular jar file for each API version, containing all the class files that are available - see screenshot for what it looks like. Also, I'm not sure under what conditions this android.jar file can be redistributed or potentially automatically be downloaded from some source when running tests or something. EDIT: just tested it:
And compiled with android.jar from the SDK: |
I previously started work on getting the full rhino test suite to run on android, but quickly gave up due to missing knowledge of rhinos internal structure. I'm not really active in this topic anymore, so I probably won't be of much help. |
@F43nd1r what we're looking for is help on the Android-specific stuff, see issue #1149 and particularly comments #1149 (comment) and #1149 (comment) |
Have the same need for HtmlUnit (https://github.com/HtmlUnit/htmlunit-android) but no good solution so far.... |
For now, I've built a very simple (!) and also my first android app, that integrates the rhino.jar in a small showcase: https://github.com/rPraml/rhino-on-android - it's far away from running a test suite. |
Run the Android emulator in GitHub Action: The last part of the README lists the projects that use this Android emulator, and you can refer to how they write tests and run them. |
Many people use Rhino in Android (in interpreted mode, as Android has a different bytecode format than other JVMs). However we don't know if Rhino is compatible with Android until an Android developer tells us.
We need an automated regression test for Android compatibility, that runs against some reasonable target version of Android.
I researched this a bit in the hopes that we could use a simple linting tool, but the standard Android "lint" looks pretty difficult to integrate with our build without causing many other problems.
A better way to solve this problem might be to create a separate repository that has an Android project in it and then set up a CI job to run that test regularly. I might have time to spend on this later this month but it'd be better to find a volunteer who is more familiar with Android.
The text was updated successfully, but these errors were encountered: