katar-db-test
Test suite for testing data adapters for katar
Last updated 4 years ago by jksdua .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install katar-db-test 
SYNC missed versions from official npm registry.

Katar Db Test Suite

Test suite for testing data adapters for katar.

The test suite uses the main property in package.json to import the data adapter.

Usage

Install dependencies

npm install mocha -g

Install the test suite using:

npm install katar-db-test --save-dev

Add a test command in your data adapter's package.json. Example scripts section from katar-memorydb is shown below:

  "scripts": {
    "test": "mocha --harmony --bail --timeout 5000 ./node_modules/katar-db-test"
  }

If the data adapter requires an options object to initialise, add this in package.json like shown below:

	"custom": {
		"testOptions": "localhost/db"
	}

Run tests using

npm test

Changelog

v0.0.3

  • Updated readme - added details on how to add adapter options to be used by the test suite when initialising the adapter

v0.0.2

  • Updated readme

v0.0.1 - Alpha

  • Initial release
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |