title: Run Android Instrumentation Tests Headless?
body: <p>I'm not even sure if this makes sense but is it possible to run instrumentation tests in a headless mode? Currently I run my test suite from the command line like so:</p>
  
  <pre><code>ant debug install test
  </code></pre>
  
  <p>Or if I want to focus on single tests like so:</p>
  
  <blockquote>
    <p>adb shell am instrument -w -e class com.my.package.testClass#testCase com.my.package.tests/android.test.InstrumentationTestRunner</p>
  </blockquote>
  
  <p>Is there a flag I can pass to ant or adb (or both) to run the tests without a UI? I'm not using an emulator. I'm running the tests on my device.</p>