Skip to content

Commit a7193fb

Browse files
authored
ci: Use list reporter for playwright on CI instead of line (#14113)
This does not work properly anyhow (e.g. it shows all the tests because of how CI logs are rendered, see https://github.com/getsentry/sentry-javascript/actions/runs/11557223813/job/32202778369), so we may as well also have the added detail of per-test runtime etc. in there.
1 parent 9e676e0 commit a7193fb

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

dev-packages/browser-integration-tests/playwright.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const config: PlaywrightTestConfig = {
3030
},
3131
],
3232

33-
reporter: process.env.CI ? [['line'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
33+
reporter: process.env.CI ? [['list'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
3434

3535
globalSetup: require.resolve('./playwright.setup.ts'),
3636
globalTeardown: require.resolve('./playwright.teardown.ts'),

dev-packages/e2e-tests/test-applications/ember-classic/playwright.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const config: PlaywrightTestConfig = {
3535
forbidOnly: !!process.env.CI,
3636
retries: 0,
3737
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
38-
reporter: process.env.CI ? [['line'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
38+
reporter: process.env.CI ? [['list'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
3939
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
4040
use: {
4141
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */

dev-packages/e2e-tests/test-applications/ember-embroider/playwright.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const config: PlaywrightTestConfig = {
3535
forbidOnly: !!process.env.CI,
3636
retries: 0,
3737
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
38-
reporter: process.env.CI ? [['line'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
38+
reporter: process.env.CI ? [['list'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
3939
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
4040
use: {
4141
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */

dev-packages/e2e-tests/test-applications/node-express-send-to-sentry/playwright.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const config = {
2323
/* Retry on CI only */
2424
retries: 0,
2525
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
26-
reporter: process.env.CI ? [['line'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
26+
reporter: process.env.CI ? [['list'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
2727
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2828
use: {
2929
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */

dev-packages/e2e-tests/test-applications/react-send-to-sentry/playwright.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const config = {
2323
/* Opt out of parallel tests on CI. */
2424
workers: 1,
2525
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
26-
reporter: process.env.CI ? [['line'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
26+
reporter: process.env.CI ? [['list'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
2727
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2828
use: {
2929
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */

packages/remix/playwright.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const config: PlaywrightTestConfig = {
88
},
99
// Run tests inside of a single file in parallel
1010
fullyParallel: true,
11-
reporter: process.env.CI ? [['line'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
11+
reporter: process.env.CI ? [['list'], ['junit', { outputFile: 'results.junit.xml' }]] : 'list',
1212
// Use 3 workers on CI, else use defaults (based on available CPU cores)
1313
// Note that 3 is a random number selected to work well with our CI setup
1414
workers: process.env.CI ? 3 : undefined,

0 commit comments

Comments
 (0)