title: Jacoco converting coverage.ec to reports without coverage.em
body: <p>I was able to get the code coverage report by following the steps below,</p>
  
  <ol>
  <li><p>Enable coverage on the build type you want (e.g. debug)</p>
  
  <p><code>buildTypes {
        debug {
          testCoverageEnabled true
        }
  }</code></p></li>
  <li><p>Apply Jacoco plugin and set version</p>
  
  <p><code>apply plugin: 'jacoco'
   jacoco {
       version "0.7.1.201405082137"
  }</code></p></li>
  <li><p>Run</p>
  
  <p><code>./gradlew createDebugCoverageReport</code></p></li>
  <li><p>All the tests in connectedAndroidTest are run and coverage report is generated based on them. I can find the coverage reports in</p>
  
  <p><code>app/build/outputs/reports/coverage/{buildType}/index.html</code></p></li>
  </ol>
  
  <p>and a coverage.ec file in</p>
  
  <p><code>app/build/outputs/code-coverage/connected/coverage.ec</code></p>
  
  <p>But no jacoco.exec since I am running from Android Instrumentation instead of Robolectric test cases.</p>
  
  <p>And when I run the instrumentation from ADB ( I guess this is still using Emma ) as follows, I get a coverage.ec file as follows,</p>
  
  <pre><code>$ adb shell am instrument -w -e coverage true -e coverageFile /sdcard/coverage.ec com.sample.helloworld.test/.Runner
  ....
  OK (4 tests)
  
  Generated code coverage data to /sdcard/coverage.ec
  </code></pre>
  
  <p>But I am not able to convert the coverage.ec to report using emma since the coverage.em file is missing,</p>
  
  <pre><code>java -cp ~/adt-bundle-mac-x86_64-20130729/sdk/tools/lib/emma_device.jar emma report -r html -in \
  coverage.em,myFile.ec,myapp_coverage1.ec -sp /path/to/myapp/src
  </code></pre>
  
  <p>Is there a way around this problem??</p>