Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Running TouchDB Android Unit Tests

cesine edited this page Mar 8, 2013 · 4 revisions

First Follow the steps to Build TouchDB Android

Running the Unit Tests in Eclipse

  1. Navigate to TouchDB-Android-TestApp -> src -> com -> couchbase.touchdb.testapp
  2. Right-click on tests, select Run As -> Android JUnit Test
  3. Be sure to select an emulator running Android SDK 2.2 or newer

Running the Unit Tests with Ant

  1. cd TouchDB-Android-TestApp
  2. ant debug
  3. ant installd
  4. adb shell am instrument -w com.couchbase.touchdb.testapp/com.neenbedankt.android.test.InstrumentationTestRunner

Common Problems

  • To change the location of the CouchDB the tests try to replicate with see instructions in Junit config: com.couchbase.touchdb.testapp.tests.test.properties