Skip to content

Commit dbdd278

Browse files
authored
feat: add JUnit reporter to base Playwright config (#96)
* feat: add JUnit reporter to base Playwright config Add JUnit reporter to the baseConfig reporter array so all consuming workspaces automatically generate junit-results.xml in the playwright-report directory. Assisted-by: OpenCode * chore: bump version to 1.1.37 Assisted-by: OpenCode * chore: add changelog entry for 1.1.37 Assisted-by: OpenCode * chore: update docs version to 1.1.37 Assisted-by: OpenCode
1 parent a23767c commit dbdd278

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

docs/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default defineConfig({
3333
{ text: "Examples", link: "/examples/" },
3434
{ text: "Overlay Testing", link: "/overlay/" },
3535
{
36-
text: "v1.1.36",
36+
text: "v1.1.37",
3737
items: [{ text: "Changelog", link: "/changelog" }],
3838
},
3939
],

docs/changelog.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## [1.1.36] - Current
5+
## [1.1.37] - Current
6+
7+
### Added
8+
9+
- **JUnit reporter in base Playwright config**: All consuming workspaces now automatically generate `playwright-report/junit-results.xml` alongside the existing HTML and JSON reports.
10+
11+
## [1.1.36]
612

713
### Fixed
814

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@red-hat-developer-hub/e2e-test-utils",
3-
"version": "1.1.36",
3+
"version": "1.1.37",
44
"description": "Test utilities for RHDH E2E tests",
55
"license": "Apache-2.0",
66
"repository": {

src/playwright/base-config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const baseConfig: PlaywrightTestConfig = {
1919
["list"],
2020
["html", { outputFolder: "playwright-report", open: "on-failure" }],
2121
["json", { outputFile: "playwright-report/results.json" }],
22+
["junit", { outputFile: "playwright-report/junit-results.xml" }],
2223
[resolve(import.meta.dirname, "../playwright/teardown-reporter.js")],
2324
],
2425
use: {

0 commit comments

Comments
 (0)