Developing app using Couchbase and Node.js we bring our usual practice cover database related logic with test cases.
My previous sql experience force me to go this way:
- clean all old data(get all keys from view, delete records)
- insert new data from e.g. file
- call keys from view with stale: ‘false’ to force indexing
This is procedures which I was planning perform before any test. Unfortunately, time to time I getting stale data nomatter of stale: false.
So I was wondering, how experts are writing test cases for Couchbase?