From 05de4d78a62228732fcfe2e3d5c4e75863d3d0dc Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Wed, 8 Jun 2016 16:57:26 +1000 Subject: [PATCH] test: add note about duration_ms in TAP reporter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/7216 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Michaël Zasso Reviewed-By: Johan Bergström --- tools/test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/test.py b/tools/test.py index ab3da337bc..3efafd9548 100755 --- a/tools/test.py +++ b/tools/test.py @@ -309,6 +309,8 @@ class TapProgressIndicator(SimpleProgressIndicator): 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(' ...')