Skip to content

Commit

Permalink
test: add note about duration_ms in TAP reporter
Browse files Browse the repository at this point in the history
PR-URL: nodejs#7216
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
  • Loading branch information
rvagg committed Jun 13, 2016
1 parent 1d4c799 commit 05de4d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ def HasRun(self, output):
total_seconds = (duration.microseconds +
(duration.seconds + duration.days * 24 * 3600) * 10**6) / 10**6

# duration_ms is measured in seconds and is read as such by TAP parsers.
# It should read as "duration including ms" rather than "duration in ms"
logger.info(' ---')
logger.info(' duration_ms: %d.%d' % (total_seconds, duration.microseconds / 1000))
logger.info(' ...')
Expand Down

0 comments on commit 05de4d7

Please sign in to comment.