-
Notifications
You must be signed in to change notification settings - Fork 3.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
show failing test when original tests takes > 1s #1228
Conversation
test/index.js
Outdated
@@ -198,6 +195,11 @@ function testFile(engine, file, filename, index) { | |||
} | |||
} | |||
|
|||
if (elapsed[0] !== 0) { |
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.
I think this might be a little more clear if you used if (elapsed[0] > 0)
.
I wish we could use destructuring and do something like
var [ seconds, _ ] = elapsed;
if (seconds > 0) {}
``
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.
👍
test/index.js
Outdated
@@ -198,6 +195,11 @@ function testFile(engine, file, filename, index) { | |||
} | |||
} | |||
|
|||
if (elapsed[0] !== 0) { | |||
console.log(' failed because it took too long.\n\n passed in %dms', prettyElapsedTime(elapsed)); |
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.
Should console.log
be console.error
?
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.
none of the other calls are console.error
I don't see any reason to change it.
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.
LGTM
@styfle: You caught me while I was updating the notes. lol |
@joshbruce Oops, did we lose something? |
@styfle: There's a slight chance we might have lost something in the Release Notes. I consolidated some, which may have been an area you were adding them to. Double-check?? |
@joshbruce They're all there 👍 |
show failing test when original tests takes > 1s
Marked version: 0.3.19
Description
Contributor
Committer
In most cases, this should be a different person than the contributor.