misc
Accept a ready function in mocha.run(), just like Mocha.prototype.run.
Pass the function into runner.run, so it passes the number of failures.
Merge pull request #359 from arian/patch-1

Accept a ready function in mocha.run(), just like Mocha.prototype.run.
Fixed browser hook error display. Closes #361
Merge branch 'master' of github.com:visionmedia/mocha
Release 1.0.1
BugFix: Support for correct runner.total count when using --grep

When running --grep the runner.total is updated to the total number of
tests matched by the grep search.

Added an .iterateTests() method for the Suite class that iterates
recursively over all tests within the suite and applies a function.
This is used to get the total number of tests that match grep search.

In order to apply .iterateTests() before the reported is called it was
needed to move the 'new Reporter()' call to after the 'runner.grep()'
call in 'bin/_mocha'.
Fixes #166 - When grepping don't display the empty suites

Don't emit the 'suite' event if the suite doesn't contain tests matching
the grep expression.
Displaying the number of pending specs
Changing the code according to the comments in the pull-request
Fixes #124 and fixes #166 - Changes the name of the suite.iterateTests()
function to suite.eachTest(), and replaces forEach by util.forEach()
for browser compatibility.
Fix for Issue #58 - Progress Reporter is off

Updated progress reporter to properly increment `complete` before
calculating `incomplete`.  Fixes #58 so that progress always shows 100%
after last test is successfully completed.
Merge pull request #371 from brendannee/issue58

Fix for Issue #58 - Progress Reporter is off
BugFix: Support for correct runner.total count when using --grep

When running --grep the runner.total is updated to the total number of
tests matched by the grep search.

Added an .iterateTests() method for the Suite class that iterates
recursively over all tests within the suite and applies a function.
This is used to get the total number of tests that match grep search.

In order to apply .iterateTests() before the reported is called it was
needed to move the 'new Reporter()' call to after the 'runner.grep()'
call in 'bin/_mocha'.
Fixes #166 - When grepping don't display the empty suites

Don't emit the 'suite' event if the suite doesn't contain tests matching
the grep expression.
Fixes #124 and fixes #166 - Changes the name of the suite.iterateTests() function to suite.eachTest(), and replaces forEach by util.forEach() for browser compatibility.
Merge pull request #368 from antoviaque/issue124

Fixes issues #124 and #166 - Proper display of suites/tests count when using --grep
Merge branch 'master' of github.com:visionmedia/mocha
refactored Suite#eachTest()