feat: html-reporter with spec duration

This commit is contained in:
bonkevin
2025-08-27 09:35:09 -04:00
committed by Kevin Bon
parent db65c3b131
commit f16b81d4ef
2 changed files with 9 additions and 0 deletions

View File

@@ -523,6 +523,11 @@ jasmineRequire.HtmlReporter = function(j$) {
'a',
{ href: specHref(resultNode.result) },
specDescription
),
createDom(
'span',
{ className: 'jasmine-spec-duration' },
'(' + resultNode.result.duration + 'ms)'
)
)
);

View File

@@ -331,6 +331,10 @@ body {
&.jasmine-excluded a:before {
content: $passing-mark + $space;
}
.jasmine-spec-duration {
margin-left: $margin-unit;
}
}
}