monocart-reporter 2.7.0 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -108,21 +108,34 @@ const generateGlobalCoverageReport = async (reporterOptions) => {
108
108
  }
109
109
 
110
110
  // coverageResults: type, reportPath, name, watermarks, summary, files
111
-
112
111
  // showing list props: global, name, path, title
113
112
 
114
- // console.log('global coverage report', report);
115
-
113
+ // there is no reportPath if only raw
116
114
  const reportPath = coverageResults.reportPath;
117
- if (reportPath && fs.existsSync(reportPath)) {
118
- return {
119
- global: true,
120
- type: 'coverage',
121
- name: coverageResults.name,
122
- path: reportPath
123
- };
115
+
116
+ const artifact = {
117
+ global: true,
118
+ type: 'coverage',
119
+ name: coverageResults.name,
120
+ path: reportPath
121
+ };
122
+
123
+ const reports = {};
124
+ const { reportGroup, outputDir } = coverageReport.options;
125
+ if (reportGroup) {
126
+ reportGroup.forEach((group) => {
127
+ group.forEach((o, k) => {
128
+ reports[k] = o;
129
+ });
130
+ });
131
+ }
132
+
133
+ if (reports.raw) {
134
+ const rawDir = path.resolve(outputDir, reports.raw.outputDir || 'raw');
135
+ artifact.rawDir = Util.relativePath(rawDir, reporterOptions.outputDir);
124
136
  }
125
137
 
138
+ return artifact;
126
139
  };
127
140
 
128
141
  const mergeGlobalCoverageReport = async (coverageRawList, reporterOptions) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monocart-reporter",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "A playwright test reporter. Shows suites/cases/steps with tree style, markdown annotations, custom columns/formatters/data collection visitors, console logs, style tags, send email.",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -65,7 +65,7 @@
65
65
  "eslint-plugin-vue": "^9.27.0",
66
66
  "file-saver": "^2.0.5",
67
67
  "github-markdown-css": "^5.6.1",
68
- "marked": "^14.0.0",
68
+ "marked": "^14.1.0",
69
69
  "mermaid": "^11.0.2",
70
70
  "mitt": "^3.0.1",
71
71
  "monocart-code-viewer": "^1.1.4",
@@ -74,7 +74,7 @@
74
74
  "open": "8.4.2",
75
75
  "sanitize-filename": "^1.6.3",
76
76
  "stack-utils": "^2.0.6",
77
- "stylelint": "^16.8.2",
77
+ "stylelint": "^16.9.0",
78
78
  "stylelint-config-plus": "^1.1.2",
79
79
  "turbogrid": "^3.2.0",
80
80
  "vine-ui": "^3.1.16",