Skip to content

Commit

Permalink
ci: Set GitHub reporter for Playwright tests (#1673)
Browse files Browse the repository at this point in the history
- Add the `github` reporter to add annotations directly in our code when
playwright tests fail
- See an example summary report from a previous run:
https://github.com/deephaven/web-client-ui/actions/runs/7121141960?pr=1673
- The annotations show up in the Summary, along with the HTML report
that you can download:

![image](https://github.com/deephaven/web-client-ui/assets/4505624/02a7df03-11fb-46fe-83fd-2c12e15489e6)
- Annotations also show up in the Files Changed tab, annotating the test
case explicitly that failed:

![image](https://github.com/deephaven/web-client-ui/assets/4505624/28c07ea6-b2e3-4118-868d-5a7cc450f2c7)
  • Loading branch information
mofojed authored Dec 7, 2023
1 parent 5e2be64 commit bdc764e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions playwright-ci.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const config: PlaywrightTestConfig = {
timeout: 60 * 1000,
reuseExistingServer: false,
},
reporter: [['github'], ['html']],
};

export default config;

0 comments on commit bdc764e

Please sign in to comment.