monocart-reporter 2.2.3 → 2.2.4
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.
|
@@ -37,7 +37,16 @@ const attachCoverageReport = async (data, testInfo, options = {}) => {
|
|
|
37
37
|
// save report json
|
|
38
38
|
const definition = Util.attachments.coverage;
|
|
39
39
|
const reportJsonPath = path.resolve(htmlDir, definition.reportFile);
|
|
40
|
-
|
|
40
|
+
// only for summary, clean useless data
|
|
41
|
+
const coverageSummary = {
|
|
42
|
+
type: coverageResults.type,
|
|
43
|
+
name: coverageResults.name,
|
|
44
|
+
// requires summary
|
|
45
|
+
summary: coverageResults.summary,
|
|
46
|
+
// only requires files count
|
|
47
|
+
files: coverageResults.files.length
|
|
48
|
+
};
|
|
49
|
+
Util.writeJSONSync(reportJsonPath, coverageSummary);
|
|
41
50
|
|
|
42
51
|
// save attachments html link
|
|
43
52
|
testInfo.attachments.push({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monocart-reporter",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
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": {
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
"koa": "~2.15.0",
|
|
48
48
|
"koa-static-resolver": "~1.0.5",
|
|
49
49
|
"lz-utils": "~2.0.2",
|
|
50
|
-
"monocart-coverage-reports": "~2.1
|
|
50
|
+
"monocart-coverage-reports": "~2.2.1",
|
|
51
51
|
"monocart-formatter": "~2.3.0",
|
|
52
52
|
"nodemailer": "~6.9.8",
|
|
53
53
|
"open": "~10.0.3",
|
|
54
|
-
"turbogrid": "
|
|
54
|
+
"turbogrid": "^3.0.13"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@playwright/test": "^1.
|
|
57
|
+
"@playwright/test": "^1.41.1",
|
|
58
58
|
"axios": "^1.6.5",
|
|
59
|
-
"dotenv": "^16.3.
|
|
59
|
+
"dotenv": "^16.3.2",
|
|
60
60
|
"eslint": "^8.56.0",
|
|
61
61
|
"eslint-config-plus": "^1.0.6",
|
|
62
62
|
"eslint-plugin-html": "^7.1.0",
|