Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zswang/jchecks
Checklist black box testing.
https://github.com/zswang/jchecks
backbox checklist test
Last synced: about 1 month ago
JSON representation
Checklist black box testing.
- Host: GitHub
- URL: https://github.com/zswang/jchecks
- Owner: zswang
- License: mit
- Created: 2017-05-20T12:35:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-23T07:17:18.000Z (over 7 years ago)
- Last Synced: 2024-09-18T19:52:23.699Z (about 2 months ago)
- Topics: backbox, checklist, test
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
jchecks
-----------# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]
checklist
## 使用方法
### 示例
```js
var flag = 0;
var flagTimer = setInterval(function () {
flag++;
}, 1000);
var checklist = new jchecks.Checklist({
items: [{
checker: function () {
console.log('checker 1')
return flag > 0
},
processor: function () {
console.log('processor 1')
return null
},
timeout: 5000,
}, {
checker: function () {
console.log('checker 2')
return flag > 3
},
processor: function () {
console.log('processor 2')
return null
},
}]
});checklist.on('error', function (error) {
console.error(error);
}).on('stop', function () {
console.info('stop');
});
```## License
MIT © [zswang](http://weibo.com/zswang)
[npm-url]: https://npmjs.org/package/jchecks
[npm-image]: https://badge.fury.io/js/jchecks.svg
[travis-url]: https://travis-ci.org/zswang/jchecks
[travis-image]: https://travis-ci.org/zswang/jchecks.svg?branch=master
[coverage-url]: https://coveralls.io/github/zswang/jchecks?branch=master
[coverage-image]: https://coveralls.io/repos/zswang/jchecks/badge.svg?branch=master&service=github