clay-driver-benchmarks
Benchmark tests for clay drivers
Last updated 2 months ago by realglobe .
Apache-2.0 · Repository · Bugs · Original npm · Tarball
$ cnpm install clay-driver-benchmarks 
SYNC missed versions from official npm registry.

clay-driver-benchmarks

Build Status npm Version JS Standard

Benchmark tests for clay drivers

Installation

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

Usage

'use strict'

const clayDriverBenchmarks = require('clay-driver-benchmarks')
const { Driver } = require('clay-driver-base')

class CustomDriver extends Driver {
  /* ... */
}

{
  let driver = new CustomDriver({ /* ... */ })

  co(function * () {
    // Run all tests
    yield clayDriverBenchmarks.run(driver, {})
  }).catch((e) => {
    console.error('Test failed!')
    console.error(e)
  })
}

Cases

Available Test Cases

Signature Description
benchmarkCreate(driver, options) Test create method of driver
benchmarkDestroy(driver, options) Test destroy method of driver
benchmarkDrop(driver, options) Test drop method of driver
benchmarkList(driver, options) Test list method of driver
benchmarkOne(driver, options) Test one method of driver
benchmarkResources(driver, options) Test resources method of driver
benchmarkUpdate(driver, options) Test update method of driver

License

This software is released under the Apache-2.0 License.

Links

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (15)

Copyright 2014 - 2016 © taobao.org |