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

test: TapReporter fixes #2647

Closed
wants to merge 1 commit into from
Closed

Conversation

skomski
Copy link
Contributor

@skomski skomski commented Sep 2, 2015

@jbergstroem
Copy link
Member

Is there a thing called # TIMEOUT? I reckon this should be "not ok" instead?

@@ -285,7 +289,7 @@ def HasRun(self, output):
(duration.seconds + duration.days * 24 * 3600) * 10**6) / 10**6

logger.info(' ---')
logger.info(' duration_ms: %d.%d' % (total_seconds, duration.microseconds / 1000))
logger.info(' duration_s: %d.%d' % (total_seconds, duration.microseconds / 1000))
Copy link
Member

Choose a reason for hiding this comment

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

no, this is wrong, it doesn't mean "duration in milliseconds", it means "duration with milliseconds"

@skomski
Copy link
Contributor Author

skomski commented Sep 2, 2015

@jbergstroem no it looks like this

1..1
# out/Release/node /home/skomski/Code/io.js/test/parallel/test-child-process-spawnsync-input.js
not ok 1 - test-child-process-spawnsync-input.js
# TIMEOUT
  ---
  duration_s: 1.11
  ...
[1]    17638 exit 1     tools/test.py -p tap -t 1 -v parallel/test-child-process-spawnsync-input

@targos targos added test Issues and PRs related to the tests. tools Issues and PRs related to the tools directory. labels Sep 2, 2015
@jbergstroem
Copy link
Member

LGTM; it'll make reading a single test output easier (ref https://ci.nodejs.org/job/node-test-commit-arm/444/nodes=pi2-raspbian-wheezy-1_of_2/tapTestReport/test.tap-428/)

@thefourtheye
Copy link
Contributor

Should we print it in the next line or on the same line as the status?

@jbergstroem
Copy link
Member

@thefourtheye happy with both. I guess it'd be more consistent to put it on the same line, similar to how we output skip.

@skomski
Copy link
Contributor Author

skomski commented Sep 3, 2015

I put it on the next line because I thought it's different to #TODO or #SKIP in the sense that it's reason the test failed and not a simple comment to the test.

@jbergstroem
Copy link
Member

@skomski what about # not ok - timeout

@jbergstroem
Copy link
Member

ping @skomski

@skomski
Copy link
Contributor Author

skomski commented Sep 9, 2015

@jbergstroem why duplicate not ok or do you mean not ok 1 - test-child-process-spawnsync-input.js - timeout?

@jbergstroem
Copy link
Member

@skomski the later.

@skomski
Copy link
Contributor Author

skomski commented Sep 21, 2015

@jbergstroem I did not look at the tap specification before:

http://testanything.org/tap-specification.html

ok 1 Description # Directive
# Diagnostic

The only defined directives are TODO and SKIP and it has no place in the description.
So I think the current place on the next line makes the most sense.

@skomski
Copy link
Contributor Author

skomski commented Oct 7, 2015

Merge?

@jbergstroem
Copy link
Member

Hey, sorry. Fell out out of scope. Should play well with tap version 13. LGTM. It'd be good to get someone else's opinion as well; @thefourtheye?

@rvagg
Copy link
Member

rvagg commented Oct 7, 2015

lgtm

@thefourtheye
Copy link
Contributor

LGTM. Just tested it in my machine.

1..946
not ok 1 test-arm-math-exp-regress-1376.js
# TIMEOUT
  ---
  duration_ms: 60.27
  ...
ok 2 test-assert.js
  ---
  duration_ms: 0.265
  ...

@jbergstroem
Copy link
Member

Cool. I'll merge.

@jbergstroem
Copy link
Member

Merged in 10924ce. Closing

@jbergstroem jbergstroem closed this Oct 7, 2015
jbergstroem pushed a commit that referenced this pull request Oct 7, 2015
Be slightly more verbose in cases where tests time out.

PR-URL: #2647
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
@jasnell jasnell mentioned this pull request Oct 8, 2015
29 tasks
jasnell pushed a commit that referenced this pull request Oct 8, 2015
Be slightly more verbose in cases where tests time out.

PR-URL: #2647
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues and PRs related to the tests. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants