Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8933453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:32:24+00:00 2026-06-15T09:32:24+00:00

I have been trying from past 1 month for deducing the Code coverage report

  • 0

I have been trying from past 1 month for deducing the Code coverage report of my Android Project which includes External Jars.(I am running on ADT20). Whenever I run

ant emma debug install test

It Shows 100% coverage for my Android project but the coverage report does not contain the Package and classes of my External Jars. Can any one help me to get the coverage report of Packages and Classes in External Jars either by emma ant build or any Android Code coverage tool, which ever gets my work done.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:32:25+00:00Added an answer on June 15, 2026 at 9:32 am

    The newest SDK uses emma by putting emma in front of the build:

    ant emma debug install
    ant emma debug install test
    

    The first is run from your project director, the second the test directory. Doing so will generate the full coverage report.

    for more information see this link

    The ADT r20-preview solves this issue by giving access to the full classpath of tested projects and their Library Projects:

    http://tools.android.com/download/adt-20-preview

    This will give you code coverage reports on your library projects, but you will have to do some modifying of the test target of build.xml to attach the source files too.

    See this Attach Android library project source code to Emma report (ant, emma) for more information on how to incorporate emma test coverage for your library projects for the time being.

    Example-build.xml:

    <emma>
                    <!-- Grantland: Attach Android library project sources to the emma report -->
                    <report sourcepath="${tested.project.absolute.dir}/${source.dir};${tested.android.library.source.dir}"
                                      verbosity="${verbosity}">
                    <!-- <report sourcepath="${tested.project.absolute.dir}/${source.dir}"
                                      verbosity="${verbosity}"> -->
                        <!-- TODO: report.dir or something like should be introduced if necessary -->
                        <infileset dir=".">
                            <include name="coverage.ec" />
                            <include name="coverage.em" />
                        </infileset>
                        <!-- TODO: reports in other, indicated by user formats -->
                        <html outfile="coverage.html" />
                   </report>
                </emma>
    

    ant.properties:

    This can be a semicolon delimited list of directories

    tested.android.library.source.dir=../library/src;etc
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to extract e-mail addresses from the following code for quite
I have been trying to upgrade for the past 3 days from Cocos2D 1.1.0-pre->2.0rc0a
I have been trying to extract data from a database and fill in a
I have been trying to display some basic EXIF data from a photo with
I have been trying to export the charts from Excel as an image file
I have been trying to get a custom Value from the Custom Field that
I have been trying to grab a file from an alternate git branch and
I have been trying to extract an e-mail address from a website using XPath.
I have been trying to pass a string value from one method into another.
I have been trying to return a collection from a property within a class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.