Calculate total suite run time inside the env and report in jasmineDone

This commit is contained in:
Gregg Van Hove
2019-06-14 14:59:33 -07:00
parent 15f969bee7
commit 3e888105f0
9 changed files with 66 additions and 104 deletions

View File

@@ -52,7 +52,6 @@ jasmineRequire.HtmlReporter = function(j$) {
addToExistingQueryString =
options.addToExistingQueryString || defaultQueryString,
filterSpecs = options.filterSpecs,
timer = options.timer || j$.noopTimer,
htmlReporterMain,
symbols,
deprecationWarnings = [];
@@ -86,7 +85,6 @@ jasmineRequire.HtmlReporter = function(j$) {
var totalSpecsDefined;
this.jasmineStarted = function(options) {
totalSpecsDefined = options.totalSpecsDefined || 0;
timer.start();
};
var summary = createDom('div', { className: 'jasmine-summary' });
@@ -165,7 +163,7 @@ jasmineRequire.HtmlReporter = function(j$) {
createDom(
'span',
{ className: 'jasmine-duration' },
'finished in ' + timer.elapsed() / 1000 + 's'
'finished in ' + doneResult.totalTime / 1000 + 's'
)
);