clay-driver-benchmarks
v2.0.3
Published
Benchmark tests for clay drivers
Downloads
56
Readme
clay-driver-benchmarks
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.