From f16b81d4ef6b32a2c17abcfc6b73f8b4e45d4fb9 Mon Sep 17 00:00:00 2001 From: bonkevin Date: Wed, 27 Aug 2025 09:35:09 -0400 Subject: [PATCH] feat: `html-reporter` with spec duration --- src/html/HtmlReporter.js | 5 +++++ src/html/_HTMLReporter.scss | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/html/HtmlReporter.js b/src/html/HtmlReporter.js index 63c5813e..a96599cd 100644 --- a/src/html/HtmlReporter.js +++ b/src/html/HtmlReporter.js @@ -523,6 +523,11 @@ jasmineRequire.HtmlReporter = function(j$) { 'a', { href: specHref(resultNode.result) }, specDescription + ), + createDom( + 'span', + { className: 'jasmine-spec-duration' }, + '(' + resultNode.result.duration + 'ms)' ) ) ); diff --git a/src/html/_HTMLReporter.scss b/src/html/_HTMLReporter.scss index 836ffb5f..b6527830 100644 --- a/src/html/_HTMLReporter.scss +++ b/src/html/_HTMLReporter.scss @@ -331,6 +331,10 @@ body { &.jasmine-excluded a:before { content: $passing-mark + $space; } + + .jasmine-spec-duration { + margin-left: $margin-unit; + } } }