-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Clean up runner #239
Clean up runner #239
Conversation
}) | ||
.catch(noop) | ||
.then(function () { | ||
stats.testCount = tests.only.length ? tests.only.length : stats.testCount; | ||
stats.testCount = hasOnlyTests ? tests.only.length : stats.testCount; |
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.
What about...
stats.testCount = tests.only.length || stats.testCount;
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.
Good one!
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.
It's the small things ✨
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.
Fully agree!
c909e02
to
d6699d1
Compare
@jamestalmage Node.js 0.10 seems to be failing again on Windows :( https://ci.appveyor.com/project/sindresorhus/ava/build/job/vrwhv5konnjgylcc |
Yes, failure is different now. "Missing plan". In TAP, the plan line can be emitted at the beginning or end. If it is the end, we already know forked processes often drop a line or two of IO from the end on Windows (especially Node 0.10). It could be something else entirely, but that is my initial suspicion. |
@jamestalmage Yeah, my suspicion too. Might be relevant: nodejs/node#3670 |
Yes. Looks very relevant. Perhaps we need to avoid explicitly ending the process unless we have to. |
Small cleanup of
lib/runner.js