Closed gr2m closed 8 years ago
Is CLIENT_ADAPTER
the right environment variable? I can’t find it anywhere in PouchDB’s source. Is it ADAPTER
? But when I run npm test
in the pouchdb
repository it still runs the whole suite against CouchDB et all while I just want to test pouchdb-adapter-fs
Yeah I added CLIENT_ADAPTER
in a branch and then forgot to open up a PR. There was no easy way I could find to test this thing. Tempted to just copy-paste PouchDB's test suite into this repo and then tweak it until it works. :/
Also yeah, the test suite requires CouchDB because it needs to test replication. Alternative is to test both fs as a client and as a server, but that requires pouchdb-server.
I suggest we add a section
Testing
to the README and ask people to git clonepouchdb
into a different repository, install dependencies and then runnpm link /path/to/pouchdb-adapter-fs
and then runCLIENT_ADAPTER=pouchdb-adapter-fs npm test
in thepouchdb
folder?That would be a simple first step. In general it would be nice to have a best practice for PouchDB adapter developers to test their adapter using the pouchdb test suite