0

I have an Android Project and a TestProject, and I've written some unit tests. I can run all Tests in eclipse.

No I try to run the tests via command-line, because I want to parse the output: adb shell am instrument -w -r com.allg.test/android.test.InstrumentationTestRunner

Everything seems fine. But when I am editing a TestCase, and run the command again, the output will not change (although I changed a test). I have to run the tests in eclipse first, to refresh the command line test result.

How is this possible?

Martin Kapfhammer
  • 260
  • 1
  • 4
  • 18

1 Answers1

0

That command line only runs the tests that are on the device. If you've edited a TestCase, you'll need to recompile it, and reinstall it on to the device.

nickgrim
  • 5,387
  • 1
  • 22
  • 28