android / android/app-bundle-samples
Tests in dynamic feature module fail when run through gradle command line
- Lingua principale
- C++
- Stelle
- 735
- Fork
- 348
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I wrote some tests for a Dynamic Feature Module inside `DynamicFeature/src/test/java/my/package/MyTest.kt`. These tests rely on a class that is hosted in the main `app` module. If I run the tests using the Android Studio configuration they run without problems, but on the other hand if I use `./gradlew test` they fail saying that the class on the main module can't be found:
```
java.lang.NoClassDefFoundError
Caused by: java.lang.ClassNotFoundException
```
In order to include the tests inside my CI, I would need either to know how to get the command line order that Android Studio is using, or figure out why when running the gradle task, it is not able to find the main module app.
Any help appreciated.
Thanks in advance!
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.