amocha
Async wrapper for mocha
Last updated 4 months ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install amocha 
SYNC missed versions from official npm registry.

amocha

Build Status npm Version JS Standard

Async wrapper for mocha

Installation

$ npm install amocha --save

Usage

'use strict'

const amocha = require('amocha')

;(async () => {
  // Run tests
  await amocha('test/**/*_test.js', {})

  // Measure coverage
  await amocha.coverage('test/**/*_test.js', {
    dir: 'coverage'
  })
}).catch((err) => console.error(err))

Signature

amocha(pattern, options, reporter) -> Promise

Params

Name Type Description
pattern string Glob file name pattern
options Object Optional settings
reporter string
options.cwd string Working directory path
options.reporter string Mocha reporter
options.timeout number Timeout duration

License

This software is released under the MIT License.

Links

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

Copyright 2014 - 2017 © taobao.org |