Skip to content

Commit

Permalink
fixed traceViewerUrl for merging reports
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Mar 13, 2024
1 parent 8af84ee commit ed00478
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog

* 2.4.3
- fixed `traceViewerUrl` for merging reports

* 2.4.2
- fixed tag issue for both title and new syntax

Expand Down
1 change: 0 additions & 1 deletion lib/generate-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ const generateData = async (results) => {
data.suiteTypes = ['project', 'file', 'describe', 'shard'];
data.caseTypes = ['passed', 'flaky', 'skipped', 'failed'];
data.traceViewerUrl = options.traceViewerUrl;

data.mermaid = options.mermaid;

calculateSummary(data, options);
Expand Down
7 changes: 7 additions & 0 deletions lib/merge-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ const mergeDataList = async (dataList, options) => {
... dataList.shift()
};

// merge new options
['traceViewerUrl', 'mermaid'].forEach((k) => {
if (Util.hasOwn(options, k)) {
mergedData[k] = options[k];
}
});

const reportName = options.name || mergedData.name;

const date = Math.min.apply(null, dates);
Expand Down

0 comments on commit ed00478

Please sign in to comment.