Skip to content

Commit

Permalink
fix: bug for incorrect build duration
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhav Singh committed Mar 28, 2023
1 parent 72ec9b5 commit 07050c1
Show file tree
Hide file tree
Showing 3 changed files with 604 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/reporter/reporters/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class HtmlReporter extends BaseReporter {
this.environments[testEnv].stats.failed += failedCount;
this.environments[testEnv].stats.skipped += module.skippedCount;
this.environments[testEnv].stats.total += passedCount + failedCount + module.skippedCount;
this.environments[testEnv].stats.time = this.environments[testEnv].stats.time || module.timeMs;
this.environments[testEnv].stats.time += this.environments[testEnv].stats.time || module.timeMs;
this.environments[testEnv].metadata.platformName = this.environments[testEnv].metadata.platformName || sessionCapabilities.platformName;
this.environments[testEnv].metadata.browserName = this.environments[testEnv].metadata.browserName || sessionCapabilities.browserName;
this.environments[testEnv].metadata.browserVersion = this.environments[testEnv].metadata.browserVersion || sessionCapabilities.browserVersion;
Expand Down
Loading

0 comments on commit 07050c1

Please sign in to comment.