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!
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!
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.
Also,
If you use the couchbase mock() function with the nodejs SDK, when you do your unit tests, the errors and console.log() inside your views are displayed.