Build and Test Steps - Command Line

Note: Currently we are sharing the test suits with Couchbase-lite-android project and the following steps will copy the test classes over and run the test suit.

Clone Couchbase-lite-android project$ git clone https://github.com/couchbase/couchbase-lite-android.git at the same folder where the couchbase-lite-java is located (parent folder of couchbase-lite-java).

Go to your couchbase-lite-java, build the project and run the tests$ ./gradlew clean && ./gradlew test

If you need to see the test output to debug them, you can run ./gradlew --debug --info test

Note: there seems to be no way to see the test output when using the command line, so if you need to see the test output, use the IntelliJ IDE instead

Build and Test Steps - IntelliJ

Build on command line - run $ ./gradlew build

Clone Couchbase-lite-android project$ git clone https://github.com/couchbase/couchbase-lite-android.git at the same folder where the couchbase-lite-java is located (parent folder of couchbase-lite-java).