Status Update
Comments
uc...@google.com <uc...@google.com> #2
Do you have a repro project that you could share with us?
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
be...@google.com <be...@google.com>
ze...@gmail.com <ze...@gmail.com> #3
I'm also having the exact same problem when I set the working directory to $MODULE_DIR$ in my JUnit default configuration, single test class runs don't pick it up from the default.
ls...@google.com <ls...@google.com> #4
Hi Milosz,
If I understood correctly, it's working as expected. When I change the default Android JUnit configuration, all the Android JUnit configurations created *after* that have the modified working directory.
Notice that the run configurations that you had previously created won't be changed, and that's expected, since we don't want to break user's existing ones. Defaults are used only for future created configs (that's the case when you right click the package: it's creating a new temporary config).
@Nayeem: let me know if this is the same case for you. FYI: the old JUnit configurations became Android JUnit configurations.
If I understood correctly, it's working as expected. When I change the default Android JUnit configuration, all the Android JUnit configurations created *after* that have the modified working directory.
Notice that the run configurations that you had previously created won't be changed, and that's expected, since we don't want to break user's existing ones. Defaults are used only for future created configs (that's the case when you right click the package: it's creating a new temporary config).
@Nayeem: let me know if this is the same case for you. FYI: the old JUnit configurations became Android JUnit configurations.
Description
Version of Gradle Plugin: 2.1.3
Version of Gradle: 2.14.1
Steps to Reproduce:
1. Set up custom values for some options for Android JUnit default configuration (e.g. working directory)
2. Run tests from one specific test class: go to class, click icon next to the class name and run all tests from file
3. Changes to working directory are not picked up, also in "Run/Debug Configurations" I cannot find configuration for this run
4. Contrary to this, when I run all tests from package containing this test class (by right-clicking package in Project pane => "Run 'Tests in '<package-name'') everything works fine, working directory is picked up, and run configuration is visible in "Run/Debug Configurations".