Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ant-tool/atool-test-mocha
Simple configuration, Lightweight test tool
https://github.com/ant-tool/atool-test-mocha
Last synced: 3 months ago
JSON representation
Simple configuration, Lightweight test tool
- Host: GitHub
- URL: https://github.com/ant-tool/atool-test-mocha
- Owner: ant-tool
- Created: 2016-05-10T06:22:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-30T02:21:30.000Z (over 6 years ago)
- Last Synced: 2024-10-18T05:11:34.445Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 9
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
Awesome Lists containing this project
README
# atool-test-mocha
> `note`: Tests with browser, use [atool-test](https://github.com/ant-tool/atool-test)
[![NPM version](https://img.shields.io/npm/v/atool-test-mocha.svg?style=flat)](https://npmjs.org/package/atool-test-mocha)
[![Build Status](https://img.shields.io/travis/ant-tool/atool-test-mocha.svg?style=flat)](https://travis-ci.org/ant-tool/atool-test-mocha)
[![Coverage Status](https://img.shields.io/coveralls/ant-tool/atool-test-mocha.svg?style=flat)](https://coveralls.io/r/ant-tool/atool-test-mocha)Simple configuration, run tests with jsdom.
## Built-in
- [mocha](http://mochajs.org/)
- [chai](http://chaijs.com/api)
- [sinon](http://sinonjs.org/)## Usage
```bash
npm install atool-test-mocha --save-dev
```
```json
"srcipts": {
"test": "atool-test-mocha"
}
```## Options
- `--coverage`: coverage output;
- `--custom-compiler`: set path of custom compiler file;
- support mocha cli options (`--bail`, `--timeout`, `--watch`, `--recursive`...)## Custom testDir
default tests dir `test`, cutom dir `atool-test-mocha ${customDirName}`