Search code examples
couchbasecouchbase-view

Local Testing of Couchbase Views


I am developing Couchbase views and using the console is limiting because the output lines are truncated and JavaScript errors are not displayed. Is there a convenient way to test views locally with an engine like Node.js?

Thanks!


Solution

  • What about couchnode?

    https://github.com/couchbase/couchnode https://github.com/couchbase/couchnode/blob/master/tests/08-views.js

    Also since basically view query is HTTP request you can use any Web/HTTP/REST client or library for debugging. But apparently official SDK seems to be more convenient way.