-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add integration tests #1675
Add integration tests #1675
Conversation
// before(function(done) { | ||
// throw new Error('this hook should not be displayed'); | ||
// }); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a bug here. Will open a new issue for this.
@mochajs/mocha :) Should help with CI. |
Wow, this is huge(and looks pretty good actually). |
And popcorn. 🎉 |
ping :) |
* @param {function} fn | ||
*/ | ||
runMochaJSON: function(fixturePath, args, fn) { | ||
var path, args, output, mocha, listener; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
output, mocha, listener
are unused- duplicate declaration of
args
LGTM! |
sleep(2); | ||
done(); | ||
}); | ||
|
||
function sleep(ms){ | ||
function sleep(ms) { | ||
var start = Date.now(); | ||
while(start + ms > Date.now())continue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This continue
is unnecessary here(because this loop doesn't have a body)
Done! I was thinking I'd merge this evening unless someone else has some recommendations. cc @mochajs/owners |
Quite a few tests (acceptance, regression, etc) require either manual invocation or visual confirmation after running the test suite to confirm their success or failure. This PR updates some of those to use a helper that invokes mocha and verifies its output. Parts were extracted/modified from #1618
Edit: For clarification. This mostly deals with test files that previously were never ran (had to be manually done), or which required close watch of the test results and console output, as their failure wouldn't trigger a failing build.