Tagged Questions

0
votes
1answer
45 views

Code Coverage in Android - Java and native C/C++ [closed]

I've been tasked with a new assignment on the project I'm working on. We need functioning code coverage tools in Android - both for Java code, and for native C/C++ code. This seems like an area that ...
2
votes
3answers
285 views

What are my alternatives for test code coverage on Android?

I know Android's Ant tooling comes with built-in Emma code coverage, but Emma's reports look more and more dated and cannot be easily integrated into other coverage reports or even Sonar, basically ...
0
votes
1answer
157 views

non-source-code class is included in emma xml coverage report

I am using Robotium to run UI test on Android Emulator and try to get coverage with emma. The xml coverage report is created successfully. But I found there are some classes in coverage report which ...
1
vote
1answer
527 views

Coverage report for unit test

I'm trying to get coverage report for my unit test, but BUILD always FAIL. I'm using this tutorial (blog.pboos) step-by-step. Everything goes fine, except last step when i run ant coverage. Here's ...
2
votes
2answers
112 views

Generating android code coverage though changes in build.xml and ant.properties

I have been trying to generate android code coverage for my android test project which tests a android project which includes a external jar. When I run command ant emma install debug test it shows ...
4
votes
1answer
53 views

Android External Api Coverage is Not coming

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 ...
0
votes
0answers
65 views

Android - Coverage of the API

I am testing the SQLite classes in the Android API, and I would like to get coverage of the API, if possible. I can easily get coverage of my application, but the point of the tests I am running is to ...
3
votes
2answers
454 views

Emma code coverage for a lib on Android

I currently have some unit tests for an Android app, which makes calls to a library jar file. I would like to see the code coverage for the jar, but when I run ant emma and look at the coverage.html, ...
1
vote
2answers
1k views

Emma does not generate coverage.ec

I setup Emma and it used to work for me. Then we had source code changes and now it doesn't generate coverage.ec at all. It does generate coverage.em. Near the end of testing, it has error messages: ...
1
vote
2answers
967 views

generating code coverage report for android test project

i am trying to get a coverage report for my android junit test project and following this guide to do so android update test-project -m <path to app project> -p <path to test project> ...
1
vote
1answer
303 views

How to run my android project in coverage mode in eclipse? [duplicate]

Possible Duplicate: Android test code coverage, Eclipse I have already installed eclemma plug-in for eclipse and i can see luncher icon in eclipse too but when i lunch my project in ...
1
vote
1answer
63 views

Method coverage in an android application without source code

Can someone give me an ide about method coverage in android apks without having the source code? I heard that there is an android specific version of emma project that can give method coverage ...
1
vote
1answer
150 views

Emma code coverage not generated when uncaught exceptions are thrown

Emma code coverage is not generated when an uncaught exception is thrown in the Android Activity under test. The coverage, however, is generated successfully if the test passed! I am using SDK r15, ...
0
votes
3answers
485 views

Getting code colored with emma in Android project

I have code coverage with Emma for my Android projects and I get a nice html-file. But i kind of think an html-file isn't really good enough. I want to see covered and not covered code in the editor. ...
2
votes
1answer
292 views

Android/Emma coverage.ec output fails to import into EclEmma

I have successfully managed to get ant to build using the emma param and thus instrument my application. All the tests run correctly and the coverage.em and coverage.ec files get created. It even ...
0
votes
0answers
135 views

EMMA ( Android ) - collecting runtime coverage data at wrong place

I'm trying to generate code coverage for my android app, but at times I get 0% code coverage. Looking at the logs I could see EMMA is collecting runtime coverage after the test is completed due to ...
1
vote
1answer
580 views

Android app code coverage for manual testing

I am looking for a way to get EMMA code coverage with manual test. I mean, i don't want to write any unit test cases using the android test framework, instead i am looking for a way to instrument my ...
0
votes
1answer
336 views

NoClassDefFoundError with the EclEmma code coverage tool

I tried to use the EclEmma code coverage tool to check coverage of test cases, but got the following error: java.lang.NoClassDefFoundError: android/test/ActivityInstrumentationTestCase2 How can I ...
-1
votes
1answer
113 views

View method calls in android apk files runtime

Hi i need to do some coverage testing on android apk files. I do not have access to the source. Are there any such tools that will allow me to view the method calls in the apk file run-time? so that I ...
2
votes
1answer
680 views

Code coverage for Android (calabash-android BDD)

I'm testing my android application using calabash-android which provides it's own "test project", with a script that renames it's package to reflect the app under test, and then uses an ...
0
votes
1answer
154 views

Ant/Emma Instrumenting Android SDK

I am currently trying to test the Android SDK/API, and to do so have created an application that utilizes the SQLite classes in the API as well as a test that runs that application. I have been ...
1
vote
1answer
142 views

Emma Code Coverage Android not Updating

After much trial and error I've got emma (code coverage tool) with ant for Android dev working purely on command line. Using Eclipse to try and run the test suite I get: Conversion to Dalvik format ...
2
votes
1answer
374 views

Building android projects with TeamCity - testing and code coverage issues

I'm working on a project consisting of both .NET code and android java projects. We're trying to get both types of projects working in one TeamCity environment. The .NET projects are being tested ...
1
vote
1answer
182 views

Android JUnit report generation

I have already read answers at generating code coverage report for android test project Unable to get Emma Coverage for Android . I am getting following error: BUILD FAILED Target "emma" does ...
0
votes
1answer
340 views

Upgrading Ant in Eclipse Juno

I am trying to run a test and get coverage for an Android application I developed, and because this is for research purposes, I would also like to be able get coverage for the Android source code ...
0
votes
1answer
544 views

How to filter files in the generated test coverage report by EMMA, using Ant in Android

I have an Android project and I am correctly generating test coverage reports using Ant and EMMA (I did it by following the instructions here: ...
4
votes
2answers
669 views

How can I use filter for emma when building Android test with ant?

I know how to use emma in ant when building my android test project but I can't find any tips on how to use filters when using the SDK. The emma website explains it when calling emma yourself but in ...
2
votes
1answer
223 views

What is the correct way to check the test coverage of an android library?

My main project is an android library. I have created a test project with some unit test in it. the tests run fine, but I am struggling to get the test coverage. When I generate the coverage report, I ...
15
votes
3answers
10k views

How to use EMMA code coverage in android

Im new to EMMA, i dont know how to use this for android system. Can anyone please give a sample for using this with android. Thanks a lot.
1
vote
2answers
613 views

java.lang.RuntimeException: Stub! - Android Code Coverage?

I was using EclEmma coverage tool to test my code coverage. But whenever I run my test cases, It gives me the following error. Can you please tell me how can I solve this error.
0
votes
1answer
1k views

Unable to get Emma Coverage for Android [duplicate]

Possible Duplicate: generating code coverage report for android test project I am facing a problem in Emma Coverage for an Android Project. I am able to generate the build.xml for the ...
6
votes
2answers
2k views

How to get code coverage in Android using Maven (android-maven-plugin)

I have an Android Maven project (let's call it parent_project) that contains various submodules: my_library_project, app_using_my_library_project, test_project and extra_lib. So, the structure would ...
1
vote
1answer
1k views

Emma reports 0% coverage

I want to get code coverage when running unit tests. I run ant coverage using standard android build.xml for tests. Tests run well. The last strings from ant coverage are Tests run: 59, Failures: ...
1
vote
1answer
256 views

Android JUnit: Define a different Application subclass

So for my normal Android project, I have the following in AndroidManifest.xml: <application android:name=".utilities.App" ...> .... </application> And then I have my App class: ...