简体   繁体   中英

How to run specified several android unit-test classes in Eclipse

We can specify which Android test classes to run in adb mode by the command

"adb shell am instrument -w -e class TestCase1,TestCase2/android.test.InstrumentationTestRunner"

Can I do the same thing( choose several test classes to run ) just by Eclipse's UI?

Thanks.

Maybe late... but searching I found the solution:

  • Click on run configurations.
  • Select in left panel "Launch Group"
  • Afterwards select one by one each test you want to run.

您可以通过将它们包含在同一Android测试项目中来一起运行它们。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM