Android自动化测试任务:AndroidGradleStarter

jopen 11年前

AndroidGradleStarter 通过一个简单的示例展示了如何整多种工具进行自动化测试任务,包含如下工具:

  • Automation: Gradle

  • Testing:  Android Testing Framework, Robotium, Roboelectric (JUnit, Instrumentation)

  • Continuous Integration: TravisCI

简单任务

  • adding testing-only project dependencies
  • using square spoon to run integraton tests
  • writing instrumentation tests with robotium
  • writing junit tests with robolectric
  • Instrumentation tests can be run with only Robotium use "gradle connectedInstrumentTest"
  • Instrumentation tests can be run with Robotium and Spoon "gradle spoon"
  • Robolectric junit tests can be run with "gradle clean test"

项目主页:http://www.open-open.com/lib/view/home/1387938923234