Skip to content

Commit 0c38863

Browse files
committed
added tc reporting
1 parent 33eebaa commit 0c38863

File tree

3 files changed

+45
-3
lines changed

3 files changed

+45
-3
lines changed

package-lock.json

Lines changed: 36 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"license": "ISC",
99
"devDependencies": {
1010
"@playwright/test": "^1.49.1",
11-
"@types/node": "^22.10.3"
11+
"@types/node": "^22.10.3",
12+
"playwright-teamcity-reporter": "^1.0.4"
13+
},
14+
"dependencies": {
15+
"strip-ansi": "^7.1.0"
1216
}
1317
}

playwright.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ export default defineConfig({
2222
/* Opt out of parallel tests on CI. */
2323
workers: process.env.CI ? 1 : undefined,
2424
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
25-
reporter: 'html',
25+
/* reporter: 'html',*/
26+
reporter: [
27+
['playwright-teamcity-reporter', {'testMetadataArtifacts': 'test-results', logConfig: false}],
28+
],
2629
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2730
use: {
2831
/* Base URL to use in actions like `await page.goto('/')`. */

0 commit comments

Comments
 (0)