Testing instructions are outdated for newer Android Studio versions #5184
-
macOS 13.6 Ventura Android Studio Giraffe 2022.3.1 Patch 1 According to the testing instructions 'Android Unit' should be used, but that no longer exists, and selecting just 'JUnit' and then any module, such as 'oppia-android.app.unitTest' won't be able to find any of the What does seem to work is a gradle test. I'm not sure where symbols like And running Android Instrumented Tests, which I'm assuming are the Espresso tests, runs 0 tests if my configuration is like this. Selecting a specific class does not help, tried it with StateFragmentTest again (some of the tests are annotated as Espresso-only, so assuming that they are Espresso tests). Playing around with the configurations generated by right-click options on the arrows next to the line numbers in test files also turned up with nothing that ran an Espresso test. Would be great if someone with more experience with the project explained the proper testing setup for a newish Android Studio version. Thanks EDIT: M1 mac. tried both API 29 (installation guide said to use this for ARM) and 28 emulators |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks @Bontrey for filing this detailed report. I have not run robolectric tests on Giraffe yet, but you probably will not be able to run espresso tests because of our test configuration and gradle compatibility reasons. Could you please take a look at our updated set up instructions for an alternative development environment? https://github.com/oppia/oppia-android/wiki/Installing-Oppia-Android |
Beta Was this translation helpful? Give feedback.
Thanks @Bontrey for filing this detailed report. I have not run robolectric tests on Giraffe yet, but you probably will not be able to run espresso tests because of our test configuration and gradle compatibility reasons. Could you please take a look at our updated set up instructions for an alternative development environment? https://github.com/oppia/oppia-android/wiki/Installing-Oppia-Android