-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coverage data not generated #7
Comments
Hi, The wiki is a bit outdated. In summary (until issue 6 gets fixed) the steps to obtain coverage are: 1 - Run droidmate-coverage and instrument the apk. DM will create files in the coverage directory with the statements reached for each action. These actions can be mapped to the trace file (model//trace*.csv). The json file generated by droidmate-coverage contains all statements in the app. Note: Currently DM requires the app to be instrumented to have the Internet permission. We are working on a solution to this limitation. Note2: We recommend running DM on an Android 9 if possible. When instrumenting the APK for coverage it is currently re-packed using its |
It's working now with your help. Thank you. |
I've had the same problem as @chanhduc. Can someone help me? |
Hi @thlmenezes , Have you tried the solution proposed above by natanieljr ? |
I've had success instrumenting a test apk using both methods (droidmate-coverage and droidmate.jar with coverage flag), but it doesn't return any result output or coverage files. Using JAVA_HOME as /usr/lib/jvm/java-8-openjdk/ and executing the command
generates the following terminal output, but no result files P.S: I use a android emulator for testing, but this command doesn't seem to be interacting with it (the exploration mode works just fine)
|
Hi @thlmenezes, As I guess, you have only instrumented the apk file. This process only helps to inject additional code into the apk, which allows Droidmate to collect the coverage during the testing. Did you see a new apk file and a json file generated? You need an additional step which is to run the Droidmate to test this instrumented apk. |
Oh, I see where I made a mistake: I've misinterpreted the 4th step, Running the command below returned the expected output
Thank You very much @chanhduc |
Hi,
I've been trying to make droidmate generate the coverage data but it doesn't happen. I mean the tool works normally but it doesn't generate anything related to coverage, even the folder named "coverage".
I followed the guide from the wiki:
Could you please help me fix this problem?
Thank you.
The text was updated successfully, but these errors were encountered: