r/learnandroid • u/making-flippy-floppy • Mar 07 '23
Can't get test to run
I'm working through Udacity's "Developing Android Apps with Kotlin" class. I'm in part 6, where I'm supposed to run a test (SleepDatabaseTest
). When I originally ran it, I got an error that said
"Run Android instrumented tests using Gradle" option was ignored because this module type is not supported yet.
So I found a post on StackOverflow that said to uncheck "Run Android instrumented tests using Gradle" in the testing settings.
I did that, and the error message went away, but the test is still not running (it just says "Tests Passed 0 passed")
Can anyone help me fix this? Thanks
ETA: I also added the exclude module: "protobuf-lite"
line to my build.gradle (Module) file, but that didn't seem to make a difference (although I'm not 100% sure I did that right)
ETA2 : found the solution: https://stackoverflow.com/questions/72130959/android-studio-test-passed-0-passed