0.1.5 • Published 9 years ago

@skivvy/skivvy-package-mocha v0.1.5

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

Skivvy package: mocha

npm version Stability Build Status

Test JavaScript files using Mocha

Installation

skivvy install mocha

Overview

This package allows you to test JavaScript files using Mocha from within the Skivvy task runner.

Included tasks

mocha

Test JavaScript files using Mocha

Usage:

skivvy run mocha

Configuration settings:

NameTypeRequiredDefaultDescription
filesstring Array<string>YesN/APath to JavaScript files containing Mocha tests
optionsobjectNo{}Mocha options (using camelCase in option names where applicable)
options.asyncOnlybooleanNofalseForce all tests to take a callback (async)
options.colorsbooleanNofalseForce enabling of colors
options.noColorsbooleanNofalseForce disabling of colors
options.growlbooleanNofalseEnable growl notification support
options.reporterOptionsobjectNo{}Reporter-specific options
options.reporterstringNo"spec"Specify the reporter to use
options.sortbooleanNofalseSort test files
options.bailbooleanNofalseBail after first test failure
options.debugbooleanNofalseEnable node's debugger, synonym for node --debug
options.grepstringNonullOnly run tests matching a pattern
options.fgrepstringNonullOnly run tests containing a string
options.exposeGcbooleanNofalseExpose gc extension
options.invertbooleanNofalseInverts grep and fgrep matches
options.requirestringNonullRequire the given module
options.slownumberNo75"slow" test threshold in milliseconds
options.timeoutnumberNo2000Set test-case timeout in milliseconds
options.ui"bdd" "tdd" "exports"No"bdd"Specify user-interface
options.watchbooleanNofalseWatch files for changes
options.checkLeaksbooleanNofalseCheck for global variable leaks
options.compilersobjectNo{}Use the given module(s) to compile files
options.debugBrkbooleanNofalseEnable node's debugger breaking on the first line
options.globalsArray<string>No[]Allow the given globals
options.inlineDiffsbooleanNofalseDisplay actual/expected differences inline within each string
options.interfacesbooleanNofalseDisplay available interfaces
options.noDeprecationbooleanNofalseSilence deprecation warnings
options.noExitbooleanNofalseRequire a clean shutdown of the event loop: mocha will exit
options.noTimeoutsbooleanNofalseDisables timeouts, given implicitly with debug
options.optsstringNo"test/mocha.opts"Specify opts path
options.profbooleanNofalseLog statistical profiling information
options.recursivebooleanNofalseInclude sub directories
options.reportersbooleanNofalseDisplay available reporters
options.throwDeprecationbooleanNofalseThrow an exception anytime a deprecated function is used
options.tracebooleanNofalseTrace function calls
options.traceDeprecationbooleanNofalseShow stack traces on deprecations
options.watchExtensionsArray<string>No[]Additional extensions to monitor with watch
options.delaybooleanNofalseWait for async suite definition
0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago