Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: do not print output from child processes in skipped tests (#10422)

Dmitry Gozman04dc9352656a
diff --git a/tests/config/commonFixtures.ts b/tests/config/commonFixtures.ts
index e6d2661e51..e2324336a3 100644
--- a/tests/config/commonFixtures.ts
+++ b/tests/config/commonFixtures.ts
@@ -123,7 +123,7 @@ export const commonFixtures: Fixtures<CommonFixtures, {}> = {
return process;
});
await Promise.all(processes.map(child => child.close()));
- if (testInfo.status !== 'passed' && !process.env.PWTEST_DEBUG) {
+ if (testInfo.status !== 'passed' && testInfo.status !== 'skipped' && !process.env.PWTEST_DEBUG) {
for (const process of processes) {
console.log('====== ' + process.params.command.join(' '));
console.log(process.output);