Comments (5)
i never tried jacoco within this plugin, but successful with a different plugin to enable robolectric tests. The difference is just a separated robolectric module. so it should be possible to archive the same here. Here is an example https://github.com/nenick/android-gradle-template and here the most magic part to enable jacoco https://github.com/nenick/android-gradle-template/blob/master/Scripts/jacoco-support.gradle
from robolectric-gradle-plugin.
@tommyd3mdi @nenick http://chrisjenx.com/gradle-robolectric-jacoco-dagger/ I wrote a blog about it.
from robolectric-gradle-plugin.
Thanks, I've stumbled upon this one in the meantime as well. I also just figured out that the basic instrumentation tests also already run into the Jacoco/Dagger incompatibility described here: https://code.google.com/p/android/issues/detail?id=69174 and since the majority of my tests are instrumentation tests your described workaround is of little use for my (few) robolectric-driven tests.
from robolectric-gradle-plugin.
nice blog article, looks like i know from where some line comes from ;)
solution to include dagger was also discussed here nenick/android-gradle-template#5 but fixing the names looks better than exclude the generated files.
you are still trying coveralls integration? When you need some help https://github.com/nenick/android-gradle-template has already coveralls integration
from robolectric-gradle-plugin.
@nenick I sent a PR to fix Coveralls plugin, 0.5.x uses the android plugin an natively includes the main source.
I based my work off yours, but I didn't like robolectric being a separate java module.
Thankfully google have added Unit Testing as a higher level priority eventually we can forget these silly hacks.
from robolectric-gradle-plugin.
Related Issues (20)
- Support for product flavors HOT 3
- robolectric-gradle-plugin conflicts with android-gradle-plugin:1.1.0-rc2 HOT 2
- Snapshots? HOT 1
- incompatible to 1.1 android gradle plugin HOT 4
- NPE with multiple flavor dimensions HOT 2
- Cannot invoke method systemProperty() on null object HOT 4
- AndroidManifest.xml not found when using with Android Gradle plugin 1.1.0 HOT 13
- Gralde not running unit tests HOT 1
- java.lang.VerifyError: Expecting a stackmap frame at branch target 17 HOT 56
- Issues when mocking Canvas HOT 5
- Specifying specific class with "include '**/MyTest.class' " no longer works HOT 1
- java.lang.UnsupportedOperationException: Robolectric does not support API level 1. HOT 2
- Support Android Gradle plugin 1.2.x HOT 16
- The Android Gradle plugin version 1.2.+ is not supported HOT 2
- Cannot invoke method systemProperty() on null object HOT 2
- Error:Cannot invoke method systemProperty() on null object HOT 2
- Could not setup the org.robolectric:shadows-support-v4:3.0 HOT 1
- esri mapview shown Black in mobile . Rendering problem HOT 3
- local maven/gradle Proxy settings won't work in robolectric execution. HOT 1
- Cannot invoke method repositories() on null object HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robolectric-gradle-plugin.