new test runner prototype

21 views
Skip to first unread message

J. Chris Anderson

unread,
May 14, 2013, 3:06:40 PM5/14/13
to mobile-c...@googlegroups.com
As part of productizing Couchbase Lite we are building tools to help support customers in the field. One thing I think will be helpful is a mobile app that you can run in your environment, that will run a test suite against at test bucket. So this can be an early warning system -- if the tests don't pass, maybe there is something wrong with your HTTP proxy configuration, etc.

I'm writing this as a JavaScript app in a PhoneGap runtime, so it can be run from either Android or iOS, to verify the behavior between mobile devices and the Couchbase Server and Sync Gateway backend.

The actual test code I have so far is primitive, it just loads some data into one Couchbase Lite database, syncs it to the gateway, and then syncs it back to a new empty database. Then it verifies that all the data is there. https://github.com/couchbaselabs/sync-tests/blob/master/www/js/app.js

It currently runs inside the LiteGap container (you have to git submodule update, and symlink www to examples/sync-tests/www before it will build)

I added an Xcode build phase for it here (pardon my zsh) https://github.com/couchbaselabs/LiteGap/tree/tests

Chris

J. Chris Anderson

unread,
May 14, 2013, 3:16:54 PM5/14/13
to mobile-c...@googlegroups.com

Jens Alfke

unread,
May 14, 2013, 3:22:02 PM5/14/13
to mobile-c...@googlegroups.com

On May 14, 2013, at 12:06 PM, J. Chris Anderson <jch...@couchbase.com> wrote:

I'm writing this as a JavaScript app in a PhoneGap runtime, so it can be run from either Android or iOS, to verify the behavior between mobile devices and the Couchbase Server and Sync Gateway backend.

There’s also Worker Bee, although it hasn’t been updated to use CBL yet.

—Jens
Reply all
Reply to author
Forward
0 new messages