playwright-slack-report-burak 3.0.39 → 3.0.40
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.
|
@@ -55,15 +55,15 @@ class ResultsParser {
|
|
|
55
55
|
}*/
|
|
56
56
|
|
|
57
57
|
// Define the directory to store node summaries
|
|
58
|
-
if (!fs.existsSync(
|
|
59
|
-
fs.mkdirSync(
|
|
58
|
+
if (!fs.existsSync(PLAYWRIGHT_REPORT_DIR)) {
|
|
59
|
+
fs.mkdirSync(PLAYWRIGHT_REPORT_DIR, { recursive: true });
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
// Determine the current node index
|
|
63
63
|
const currentNodeIndex = this.shardIndex;
|
|
64
64
|
|
|
65
65
|
// Define the file for the current node's summary
|
|
66
|
-
const nodeSummaryFile = path.join(
|
|
66
|
+
const nodeSummaryFile = path.join(PLAYWRIGHT_REPORT_DIR, `node_summary_${currentNodeIndex}.json`);
|
|
67
67
|
|
|
68
68
|
const totalTestCasesForNode = this.result.reduce((acc, suite) => acc + suite.testSuite.tests.length, 0);
|
|
69
69
|
|
package/package.json
CHANGED