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

  • SEARCH
  • Home
  • 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 9304629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T23:45:06+00:00 2026-06-18T23:45:06+00:00

I have a new app that is using Google Cloud Messaging (GCM) and therefore

  • 0

I have a new app that is using Google Cloud Messaging (GCM) and therefore the new Google Play API.

Because the Google Play API does not run in an emulator only on a actual device I am so far unable to use my usual setup of maven, jenkins, sonar and emma to generate any code coverage.

To be more specific I can run instrumented tests and generate an emma.ec file but because the file is generated on device and not sdcard I cannot pull the file from the device with maven.

I believe I might be able to change the generated emma.ec location to the sdcard but I do no have one. Or root my phone and pull the file that way.

So my question is, does anyone know of another way to extract this file or otherwise work around these restrictions?

  • 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-18T23:45:07+00:00Added an answer on June 18, 2026 at 11:45 pm

    You don’t actually want to test the coverage within the Google Play API but you want to test the coverage of your code that deals with the API so mocking makes sense here.

    First you wrap the interaction with the Google Play API in a class of your own that just delegates calls to the Play API. Then you can mock out that service for your test so that it doesn’t interact with the Google Play API but returns meaningful test data as though it were from the Google Play API. This way you can test your code that deals with success, failure, and edge cases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app that can be downloaded from google play using In-app purchase
I am writing an Android app using the Google Cloud Messaging API and I
I'm developing an app that accesses Google APIs (starting with Calendar API) using OAuth2
I have a web app that uses Google Maps API v3. I have it
I have a test application that I draw a Polygon using google maps API.
I have a new app that I made and put in the store yesterday.
I have a new iPhone app that has the following (and only the following)
I have an app that when I click a button loads a new TabItem
We have a database app that we're beginning to write some new systems for
I have a database connection that I got like this: db = Mongo::Connection.new.db(app-development) but

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.