Skip to content
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

Merged
merged 2 commits into from
Sep 6, 2022
Merged

Conversation

MoLow
Copy link
Member

@MoLow MoLow commented Sep 4, 2022

this fixes the same historical mistake from nodejs/node#44450

tap2junit/__main__.py Outdated Show resolved Hide resolved
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why no change here?

Copy link
Member Author

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

Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why no change here?

@MoLow MoLow requested a review from cclauss September 6, 2022 09:09
@cclauss
Copy link
Collaborator

cclauss commented Sep 6, 2022

Changed lines +4,757 −4,758

Copy link
Contributor

@aduh95 aduh95 left a 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.

@MoLow
Copy link
Member Author

MoLow commented Sep 6, 2022

I think only @cclauss can merge this?

@targos
Copy link
Member

targos commented Sep 6, 2022

Members of @nodejs/build are also admins of this repo

@cclauss cclauss merged commit 3c8e81f into nodejs:main Sep 6, 2022
@rvagg
Copy link
Member

rvagg commented Sep 6, 2022

added some comments about this @ nodejs/node#44450 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants