You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google has integrated jacoco code coverage support into the Gradle build system for Android. This should enable appium to easily capture code coverage.
I'm hoping to set this up with one of the droiddriver examples at some point this year. I know some teams have already figured it out, I haven't seen any examples though.
Enabling code coverage can be done in a single line of code with the new Android Studio + gradle:
buildTypes { debug { testCoverageEnabled true } }
There's an example in the droiddriver samples repo. The code I added to the appium server for emma should work the same with jacoco. I think the tasks for this issue are verifying the code works and then updating the doc.
Activity
bootstraponline commentedon Aug 10, 2014
I think the easy way to do this is:
sunhao111999 commentedon Aug 15, 2014
@bootstraponline have a Demo?
bootstraponline commentedon Aug 15, 2014
not yet, it's on the to do list though.
404- commentedon Feb 24, 2015
any progress on this?
bootstraponline commentedon Feb 24, 2015
I'm hoping to set this up with one of the droiddriver examples at some point this year. I know some teams have already figured it out, I haven't seen any examples though.
bootstraponline commentedon Apr 16, 2015
Enabling code coverage can be done in a single line of code with the new Android Studio + gradle:
buildTypes { debug { testCoverageEnabled true } }
There's an example in the droiddriver samples repo. The code I added to the appium server for emma should work the same with jacoco. I think the tasks for this issue are verifying the code works and then updating the doc.
bootstraponline commentedon Jul 25, 2015
Google broke jacoco so we'd need a custom instrumentation runner using the code provided in that issue. I've set one up for my Espresso tests at work.
nikhil969 commentedon Jan 4, 2016
Do we have any proper documentation for the usage of Jacoco with TestNG. Pleas can you point it or provide some steps over here.
nikhil969 commentedon Feb 4, 2016
Any progress on this..
bootstraponline commentedon Feb 4, 2016
I don't think anyone is actively working on it.
SrinivasanTarget commentedon Apr 29, 2016
@triager please close
ghost commentedon Nov 14, 2016
Hi,
I am trying to generate code coverage for my android application.
Let me know the possibilities so I can give a try .
Thanks,
Thiru
ghost commentedon Sep 28, 2017
Hi,
Can anything be done to get code coverage without source code.
lock commentedon Apr 25, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.