Android自動化測試任務:AndroidGradleStarter
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"
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!