clay-driver-tests

3.0.1 • Public • Published

clay-driver-tests

Build Status npm Version JS Standard

Tests for ClayDB drivers

Installation

$ npm install clay-driver-tests --save-dev

Usage

'use strict'
 
const co = require('co')
const clayDriverTests = require('clay-driver-tests')
const { Driver } = require('clay-driver-base')
 
class CustomDriver extends Driver {
  /* ... */
}
 
{
  let driver = new CustomDriver({ /* ... */ })
 
  co(function * () {
    // Run all tests
    yield clayDriverTests.run(driver, {})
  }).catch((e) => {
    console.error('Test failed!')
    console.error(e)
  })
}
 

Cases

Available Test Cases

Signature Description
testCreate(driver, options) Test create method of driver
testDestroy(driver, options) Test destroy method of driver
testDrop(driver, options) Test drop method of driver
testList(driver, options) Test list method of driver
testOne(driver, options) Test one method of driver
testResources(driver, options) Test resources method of driver
testUpdate(driver, options) Test update method of driver

License

This software is released under the Apache-2.0 License.

Links

Readme

Keywords

Package Sidebar

Install

npm i clay-driver-tests

Weekly Downloads

5

Version

3.0.1

License

Apache-2.0

Unpacked Size

78.5 kB

Total Files

55

Last publish

Collaborators

  • realglobe