pon-task-mocha
Pon tasks to run mocha tests
Last updated 8 months ago by realglobe .
Apache-2.0 · Repository · Bugs · Original npm · Tarball
$ cnpm install pon-task-mocha 
SYNC missed versions from official npm registry.

pon-task-mocha

Build Status npm Version JS Standard

Pon tasks to run mocha tests

Installation

$ npm install pon-task-mocha --save

Usage

'use strict'

const pon = require('pon')
const mocha = require('pon-task-mocha')

async function tryExample () {
  let run = pon({
    'test:mocha': mocha('test/**/*.js'),
    'test': [ 'test:mocha' ]
  })

  run('test')
}

tryExample()

Signatures

define(-, options, -) -> function

Define task

Param type Description
- string|string[] Source file name pattern
options Object Optional settings
options.reporter string Mocha reporter
options.timeout number Mocha test timeout
- string|string[] Test source filename (Used as watch target)

License

This software is released under the Apache-2.0 License.

Links

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (14)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |