You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Growl: Web notifications & Desktop prerequisite software check (#3542)
Added (minorly brittle) means to verify prerequisite software
is installed. Migrated Growl support code to its own file. This
implementation's checks are required to enable Growl; failure
will write notice to `stderr`. Other modifications based on
discussion from Chad Rickman's PR #3311. This also checks for
errors from Growl callback.
Provided browser notification support as well for modern browsers
by replacing the existing noop stub with an implementation for web
notifications via the Mocha `growl` pseudo-reporter (when run in browser).
Updated user guide and wiki for desktop notification support.
Fixes#3111
Signed-off-by: Paul Roebuck <[email protected]>
@@ -1631,11 +1697,11 @@ For example, suppose you have the following `mocha.opts` file:
1631
1697
1632
1698
The settings above will default the reporter to `dot`, require the `should`
1633
1699
library, and use `bdd` as the interface. With this, you may then invoke `mocha`
1634
-
with additional arguments, here enabling [Growl](http://growl.info/) support,
1635
-
and changing the reporter to `list`:
1700
+
with additional arguments, here changing the reporter to `list` and setting the
1701
+
slow threshold to half a second:
1636
1702
1637
1703
```sh
1638
-
$ mocha --reporter list --growl
1704
+
$ mocha --reporter list --slow 500
1639
1705
```
1640
1706
1641
1707
To ignore your `mocha.opts`, use the `--no-opts` option.
@@ -1727,7 +1793,20 @@ $ REPORTER=nyan npm test
1727
1793
1728
1794
## More Information
1729
1795
1730
-
In addition to chatting with us on [Gitter], for additional information such as using spies, mocking, and shared behaviours be sure to check out the [Mocha Wiki](https://github.com/mochajs/mocha/wiki) on GitHub. For discussions join the [Google Group](https://groups.google.com/group/mochajs). For a running example of Mocha, view [example/tests.html](example/tests.html). For the JavaScript API, view the [API documentation](api/) or the [source](https://github.com/mochajs/mocha/blob/master/lib/mocha.js#L51).
1796
+
In addition to chatting with us on [Gitter][Gitter-mocha], for additional information such as using
1797
+
spies, mocking, and shared behaviours be sure to check out the [Mocha Wiki][Mocha-wiki] on GitHub.
1798
+
For discussions join the [Google Group][Google-mocha]. For a running example of Mocha, view
1799
+
[example/tests.html](example/tests.html). For the JavaScript API, view the [API documentation](api/)
1800
+
or the [source](https://github.com/mochajs/mocha/blob/master/lib/mocha.js).
0 commit comments