Skip to content
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 working with kotlin after bumping gradle wrapper to 2.14-all and build tools to 2.2 #26

Closed
rainqer opened this issue Oct 4, 2016 · 5 comments

Comments

@rainqer
Copy link

rainqer commented Oct 4, 2016

After bumping gradle wrapper to 2.14-all and build tools to 2.2, our test coverage went down from 58% to 9% overall. The tools successful runs all tests, then marks most of the packages as having 0% coverage.

@rainqer
Copy link
Author

rainqer commented Nov 3, 2016

We are trying to tackle this problem

@julioromano
Copy link

I see the same behavior with build tools 2.2 and gradle 2.14 but even when using pure java (i.e. no kotlin). When using Android studio's code coverage feature I get a positive coverage, but when running ./gradlew jacocoTestReport i get 0% in the produced reports.

@BrantApps
Copy link

Been seeing this for a while myself. Will keep you posted if I find anything out. I set-up the same system for our app at work and it isn't suffering the 0% coverage issue remarked here. Do our projects share some common structure? Might try and answer that tomorrow on the train to work and see if I can get the most simple of projects to work and then 'complicate' it with flavours, build types and multi-module make-up.

@BrantApps
Copy link

ok, so didn't make myself clear. I'm rolling my own Jacoco coverage report based off a blog post on the subject a year back. But bizarrely I have just got this working again by adding;

android {
    testOptions {
        unitTests.all {
            jacoco {
                includeNoLocationClasses = true
            }
        }
    }
}

...to my coverage.gradle file I'm used to add in the Jacoco task. This file now looks like this.

Any help to getting your plugin working again?

@arturdm
Copy link
Owner

arturdm commented Feb 26, 2019

Fixed in 0.1.4 release.

@arturdm arturdm closed this as completed Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants