-
Notifications
You must be signed in to change notification settings - Fork 12
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
fix duration_ms to be correct #38
Conversation
Co-authored-by: Christian Clauss <cclauss@me.com>
<testcase name="test-accessor-properties" time="1.711000" classname="parallel"> | ||
<testsuites disabled="0" errors="0" failures="1" tests="1" time="0.001711"> | ||
<testsuite disabled="0" errors="0" failures="1" name="test/fixtures/test2" skipped="0" tests="1" time="0.001711" hostname="{HOSTNAME}"> | ||
<testcase name="test-accessor-properties" time="0.001711" classname="parallel"> | ||
<failure type="1" message="fail (1)"> | ||
--- | ||
duration_ms: 1.711 |
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.
Why no change here?
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 includes raw TAP - so it is expected to be milliseconds, but jUnit time
attribute is expected as seconds
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.
Yes. No wonder that everyone is confused.
<testcase name="test_runner_describe_it" time="4.758000" classname="message"> | ||
<testsuites disabled="0" errors="0" failures="1" tests="1" time="0.004758"> | ||
<testsuite disabled="0" errors="0" failures="1" name="test/fixtures/yaml-block" skipped="0" tests="1" time="0.004758" hostname="{HOSTNAME}"> | ||
<testcase name="test_runner_describe_it" time="0.004758" classname="message"> | ||
<failure type="1" message="fail (1)"> | ||
--- | ||
duration_ms: 4.758 |
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.
Why no change here?
Changed lines |
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 don't know enough about JUnit time
attribute, but I trust that it's indeed in seconds, and the code changes LGTM.
I think only @cclauss can merge this? |
Members of @nodejs/build are also admins of this repo |
added some comments about this @ nodejs/node#44450 (comment) |
this fixes the same historical mistake from nodejs/node#44450