Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android test code coverage, Eclipse

Is there a way to run unit tests for Android from Eclipse in a way that will instrument the code and measure test code coverage?

I'm looking for a simple way to find out which parts of my application aren't tested yet, fix the test cases and see if that helped.

like image 911
Marcin Avatar asked Jul 19 '10 15:07

Marcin


1 Answers

Disclaimer: I'm an Atlassian

The Atlassian Clover tool has also support for Android - it measures coverage for both application code and unit tests. Although in alpha stage, it works quite well - it works with Eclipse version 3.6.2 and higher.

If you want to find areas of your application which require improvement, then the following Clover features will be perfect for this task:

  • Clover Dashboard
  • Coverage Cloud Report
  • Coverage TreeMap Report
  • Coverage Explorer

Oh, and the Clover HTML Report looks fantastic!

Check this: https://confluence.atlassian.com/display/CLOVER/Clover-for-Android

like image 141
Marek Avatar answered Oct 27 '22 00:10

Marek