2.0.3 • Published 7 years ago

clay-driver-benchmarks v2.0.3

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
7 years ago

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

SignatureDescription
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

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago