Version of Android Studio (available in the about box): 0.8.8
OS version: Mac OSX 10.9.4
Java JRE/JDK version: 8
A unit test in a subproject accesses a file through a relative path. If triggered from the Android Studio interface menu (right click and run the test), the path is relative to the root project. However, if triggered by the Gradle in the command line, it is relative to the subproject.
Though it's easier to run the unit tests from the interface, sometime we want the unit tests to be scheduled to run from command line Gradle. This inconsistency bugs the team once in a while. We would consider the AS should behave consistently as Gradle runs the tasks from the command line, that is, relative to the subproject path.
Any idea for a quick fix?
Thanks.