Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Mocha test runner as a Browserify plugin

License

NotificationsYou must be signed in to change notification settings

mantoni/mocaccino.js

Repository files navigation

Node.js CISemVerLicense

Mocha test runner as aBrowserify plugin.

Install

npm install mocaccino --save-dev

Real browser testing

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.

Code coverage with node

Use theCoverify transform and node:

$ browserify --bare -p [ mocaccino --node ] -t coverify test.js | node | coverify

Usage

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.

Compatibility

  • Node 12 or later
  • Browserify 5.9 or later (since version 1.0.0)
  • Browserify 4.x (before 1.0.0)

License

MIT

About

Mocha test runner as a Browserify plugin

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors14


[8]ページ先頭

©2009-2025 Movatter.jp