Skip to content

yuanchun-li/androcov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

androcov

Instrument an Android app to measure the test coverage.

Take method coverage as an example, the steps to measure the method coverage of dyn. analysis are as follows:

  1. Analyze the app and get a list of all methods in the app.
  2. Instrument the app to print log messages when it reaches a method.
  3. Run the app and collect the log messages.
  4. Get the list of reached methods.
  5. Calculate the coverage (i.e. the percentage of reached methods).

Installation

mvn package

Usage

java -jar androcov.jar -o <directory> -i <APK> [-h] -sdk <android.jar>
 -o,--output <directory>            path to output dir
 -i,--input <APK>                   path to target APK
 -h,--help                          print this help message
 -sdk,--android_jar <android.jar>   path to android.jar

About

Measure test coverage without source code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published