title: Best way to run Robolectric tests on Android device
body: <p>I have a Robolectric test project setup, but I'd like to also run these tests on my device to check that I don't get bit by JVM vs Dalvik implementation differences.</p>
  
  <p>Unlike robolectric tests, I won't run these tests frequently. My concern is that there's little effort to maintain the test suite and that they verify actual device functionality.</p>
  
  <p>What's the best way to do that?</p>
  
  <hr>
  
  <p>What I've currently got:</p>
  
  <p>My robolectric test project as a test case TestPackage. I created an Android Test project with a test case TestRoboOnAndroid. It creates a TestPackage and has a test for each test in TestPackage.</p>
  
  <p>Right now, every time I add a test to my robolectric suite, I need to manually add it to my device suite. Is there some way to do that automatically with reflection?</p>
  
  <p>Also, Robolectric uses JUnit 4 (by default) and Android uses JUnit 3. So I have to write all of my Robolectric tests using JUnit 3 style (importing from <code>junit.framework</code> instead of <code>org.junit</code>).</p>