-
Notifications
You must be signed in to change notification settings - Fork 29
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
Not compileing main source when compile unit test sources #7
Comments
Awesome. Works perfectly fine for me. If you want to just use tasks.withType(Test) {
dependsOn assembleDebug
} Although than you may get a problem with the
|
here is an enhanced version
|
Isnt this issue a duplicate of #5? |
They are two different issues. This one miss the compiled main classes of the current library module under test. Google issue was merged into https://code.google.com/p/android/issues/detail?id=156027 The other one miss resource files specified under test (and is already fixed with 1.2beta). |
Fixed with gradle android plugin 1.2.+ |
When you try to run unit tests from a library module then you must compile the main sources first.
gradle lib:assembleDebug
Issue is tracked at https://code.google.com/p/android/issues/detail?id=158251
The text was updated successfully, but these errors were encountered: