android - Jacoco code coverage details missing on Jenkins -
i trying use code coverage tools of jacoco on jenkins server android library. builds successful, , code coverage stats shown in report :
however, when want details of lines covered or not, page totally empty:
as thing need most, pretty annoying...
here part of gradle file have jacoco:
apply plugin: 'jacoco' jacoco { // use version upper ones broken (with gradle) // https://github.com/jacoco/jacoco/issues/288 toolversion = "0.7.1.201405082137" } // edit covered scope if needed def coveragesourcedirs = [ '../s3papiandroidclient/src' ] task jacocotestreport(type: jacocoreport, dependson: "test") { group = "reporting" description = "generate jacoco coverage reports" classdirectories = filetree( dir: '../s3papiandroidclient/build/intermediates/classes', excludes: ['**/r.class', '**/r$*.class', '**/*$viewinjector*.*', '**/buildconfig.*', '**/manifest*.*'] ) additionalsourcedirs = files(coveragesourcedirs) sourcedirectories = files(coveragesourcedirs) executiondata = files('../app/build/jacoco/testunittestdebug.exec') reports { xml.enabled = true html.enabled = true } } jacocotestreport.dofirst{ delete filetree (dir: "../s3papiandroidclient/build/intermediates/classes", include: "**/*test.class") }
anyone encountered similar ?
regards, gyoo.
Comments
Post a Comment