@dionlarson/playwright-orchestrator-core 1.6.6 → 1.6.7
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.
- package/dist/test-runner.d.ts +1 -0
- package/dist/test-runner.js +3 -1
- package/package.json +1 -1
package/dist/test-runner.d.ts
CHANGED
package/dist/test-runner.js
CHANGED
|
@@ -23,6 +23,7 @@ export class TestRunner {
|
|
|
23
23
|
adapter;
|
|
24
24
|
runId;
|
|
25
25
|
outputFolder;
|
|
26
|
+
testResultsFolder = 'test-results';
|
|
26
27
|
reporter = new TestExecutionReporter();
|
|
27
28
|
setupManager;
|
|
28
29
|
hasFailures = false;
|
|
@@ -101,6 +102,7 @@ export class TestRunner {
|
|
|
101
102
|
}
|
|
102
103
|
async removePreviousReports() {
|
|
103
104
|
await rm(`./${this.outputFolder}`, { recursive: true, force: true });
|
|
105
|
+
await rm(`./${this.testResultsFolder}`, { recursive: true, force: true });
|
|
104
106
|
await mkdir(`./${this.outputFolder}`, { recursive: true });
|
|
105
107
|
}
|
|
106
108
|
async runTest(test, config) {
|
|
@@ -153,7 +155,7 @@ export class TestRunner {
|
|
|
153
155
|
const args = [...config.args];
|
|
154
156
|
args.push('--workers', '1');
|
|
155
157
|
args.push('--project', `"${test.project}"`);
|
|
156
|
-
args.push('--output', `"${this.
|
|
158
|
+
args.push('--output', `"${this.testResultsFolder}/${testHash}"`);
|
|
157
159
|
if (config.configFile) {
|
|
158
160
|
args.push('--config', `"${config.configFile}"`);
|
|
159
161
|
}
|