I am trying to create code coverage for Android for my Android testing project, which is testing an Android project that includes an external jar. When i run the command
ant emma install debug test
it shows the coverage of only the android project, but does not include the package and functions of the external bank. According to my research, I found that some changes should be made in the ant.properties file and the emma report tag in build.xml .
Any suggestions are welcome.
[change]
In a furthur study, I looked at a blog that says enter a variable
tested.android.library.source.dir="path to external jars" in ant.properties
and the same variable should be added to the report source path as
<emma> <report sourcepath="${tested.project.source.absolute.dir}:${tested.project.lib.source.path.value}:${tested.android.library.source.dir}" verbosity="${verbosity}"> <infileset file="${out.absolute.dir}/coverage.ec" /> <infileset file="${tested.project.out.absolute.dir}/coverage.em" /> <html outfile="${out.absolute.dir}/coverage.html" /> </report> </emma>
But still, the coverage does not show the features and package of external banners.
I wanted to know that my jars are not in the Android testing project, but in the Android test project. So, how to specify the path to these external jars in the ant.properties test project.
source share