mcruncher / worshipsongs-android

Android app for Worship Songs
GNU General Public License v3.0
8 stars 8 forks source link

Unit tests in Android Studio doesn't recognize source classes #584

Closed sskjames closed 1 year ago

sskjames commented 1 year ago

android-studio-unit-tests-does-not-recognize-source-classes

sskjames commented 1 year ago

There were suggestions to completely uninstall Android Studio including it's cache's, preferences etc. Did that by following this guide. However, the problem still remains.

sskjames commented 1 year ago

Others have faced this problem too.

sskjames commented 1 year ago

Created a new Android project and wrote a simple unit test for a source class. Didn't face any problem there.

madasamys commented 1 year ago

@sskjames , The issue happened only on groovy test class or both java test class ?. App using roboelectric test framework to write acceptance tests. Please check this library compatible with defined min and max sdk version.

sskjames commented 1 year ago

Hi @madasamys, we are forced to move way from groovy tests as the Groovy Android Gradle Plugin has been deprecated.

sskjames commented 1 year ago

This has been resolved by #589 and #591.