Giter VIP home page Giter VIP logo

Comments (5)

nenick avatar nenick commented on August 15, 2024

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.

chrisjenx avatar chrisjenx commented on August 15, 2024

@tommyd3mdi @nenick http://chrisjenx.com/gradle-robolectric-jacoco-dagger/ I wrote a blog about it.

from robolectric-gradle-plugin.

realdadfish avatar realdadfish commented on August 15, 2024

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.

nenick avatar nenick commented on August 15, 2024

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.

chrisjenx avatar chrisjenx commented on August 15, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.