New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependencies not copied over to test project #1
Comments
HI, thanks for pointing this out. I have just released version 0.2.1 which handles this case. I know that it will take some time to finalize this plugin :) Cheers |
Hi, it's good to see this plugin on its way. Take your time :). 0.2.1 seems to fix basic dependencies. Though, it still doesn't seem to properly handle further dependencies between modules (i.e., the project under test has a dependency to a android-library project). Tests are executed fine when they do not depend on the library-project. It would also be great to see this plugin being able to directly test projects that use the 'android-library' plugin instead of the 'android' plugin: |
Hi again, I saw that groovy (java) plugin has completely on idea how to handle project(":androidApp") dependency. Same goes with library. I have already started work on transitive dependencies and I'm almost done. Should be released today. Thanks for pointing this out :) |
Slipped a bit but released. I've just pushed 0.3.0 version. It handles the maven/library dependencies. Please drop me if anything else is missing :) |
I finally found some time to test the current plugin version (0.3.1). I can now test my library project :) but I still have dependency problems when testing my android projects. I could reproduce this issue in your sample project: After adding the appcompat dependency to project
|
Adding the following to my robospock project's
Also, I still need to manually copy over file dependencies to the robospock project, such as
or I run into |
The com.android.support dependency doesn't belong to maven central repository. It's added under hood in the android plugin. That's why it's not visible in the test project even though it's reference is copied. The hack you made is actually not a hack but the part of android plugin. I think I can add such instructions to robospock plugin to handle this case. I like out of the box solutions. Coming back to jar issues I did a test and have the same result. I simply add this support soon. Many thanks for feedback. |
Hi Chirstian, thanks for pointing problems you had. I created issues on github for better Cheers, On Sun, Feb 16, 2014 at 7:35 PM, Christian Langer
|
Hi,
I have a test project (':tests.app') and my regular NBS project (':app') next to each other. When running tests using the configuration shown at http://robospock.org/ I get dependency errors that can only be resolved by manually copying over all app dependencies to the test project.
or
etc.
I was previously using this plugin: https://github.com/novoda/gradle-android-test-plugin
The text was updated successfully, but these errors were encountered: