Reputation: 193
Backstory:
This is important because I'm trying to compare how it differs from executing tests from command line with: ./gradlew :testDebug
You see, when running the test package from Android Studio my tests run correctly, but running with command line above gradle throws an exception.
The root of the problem is that when run on command line gradle cannot find resource file for dependent Module B. Line that throws exception: setParametersFromResource(context, R.raw.coursera_mobile_android, VALUE_NAMESPACE);
Upvotes: 8
Views: 2235
Reputation: 193
I knew before you can read the gradle executions via the Gradle Console, but didn't realize you can execute that bundle of commands via command line.
Example from Gradle console:
Execute [:<module_name>:assembleDebug, :<module_name>:assembleDebugUnitTest]
to:
./gradlew [:<module_name>:assembleDebug, :<module_name>:assembleDebugUnitTest]
Upvotes: 1