- Notifications
You must be signed in to change notification settings - Fork12
Mocha test runner as a Browserify plugin
License
mantoni/mocaccino.js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Mocha test runner as aBrowserify plugin.
npm install mocaccino --save-dev
This module is developed as part ofMochify which allows you to run testswith a headless browser, on a Selenium grid, in the cloud with SauceLabs orgenerates a standalone HTML page to run the tests. The underlying modules canalso be used as Browserify plugins.
- min-webdriver for Selenium and SauceLabs support
- Consolify to generate a standalone HTML page
Use theCoverify transform and node:
$ browserify --bare -p [ mocaccino --node ] -t coverify test.js | node | coverify
Mocaccino is a browserify plugin:
browserify -p [ mocaccino OPTIONS ]where OPTIONS are: --reporter, -R Mocha reporter to use, defaults to "tap" --grep Mocha grep option --fgrep Mocha fgrep option --invert Mocha invert option --timeout, -t Mocha timeout in milliseconds to use, defaults to 2000 --ui, -U Mocha user interface to use, defaults to "bdd" --yields, -y Yield every N milliseconds, defaults to 250 --node If result is used in node instead of a browser --windowWidth Overrides the window width, defaults to the current shells window width or fall back to 80 --no-colors Disable colors (overrides color support detection) --colors Enable colors (overrides color support detection) --mochaPath Path to custom Mocha module
Theyields
option causes a tiny delay every N milliseconds to allow pendingI/O to happen. It's ignored if--node
is given.
- Node 12 or later
- Browserify 5.9 or later (since version 1.0.0)
- Browserify 4.x (before 1.0.0)
MIT
About
Mocha test runner as a Browserify plugin
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors14
Uh oh!
There was an error while loading.Please reload this page.