Merge branch 'bonkevin-html-reporter-with-duration'

* Merges #2073 from @bonkevin
* Adds spec duration to HTML reporter
This commit is contained in:
Steve Gravrock
2025-08-30 12:35:11 -07:00
5 changed files with 27 additions and 4 deletions

View File

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

View File

@@ -229,6 +229,9 @@ body {
.jasmine_html-reporter .jasmine-specs li.jasmine-excluded a:before {
content: "• ";
}
.jasmine_html-reporter .jasmine-specs li .jasmine-spec-duration {
margin-left: 14px;
}
.jasmine_html-reporter .jasmine-description + .jasmine-suite {
margin-top: 0;
}