title: Test code coverage with Robolectric and Maven
body: <p>I have been searching internet for hours now and have not got any working solutions yet.</p>
  
  <p>The question is simple: <strong>how to get test code coverage in Android maven project using Robolectric as testing library?</strong></p>
  
  <p>I have tried JaCoCo and Cobertura but no success. There is always some kind of error. I think my problem is that I just can't install right code coverage plugin for Maven correctly. I know there is plenty of example POM files and code snippets, but I have not got any luck there.</p>
  
  <p>Robolectric is btw working correclty.</p>
  
  <p><strong>My project dir looks like this:</strong></p>
  
  <pre><code>  | parent project
    |-- app project
    |-- test project
  </code></pre>
  
  <p>Thanks for helping me out!</p>