-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docs]: Improve documentation for metadata #34094
Comments
We discussed this issue, and are not sure how to improve it. |
@vitalets We are open to bringing the commit info into the metadata under an option in the config. If that goes public, then we'll definitely document the fields and the html reporter will show them nicely. Would you like to contribute? |
Yes, I'm ready to contribute. Could you guide me, how to name / where to place the config option? |
Something like |
Ok! When |
Exactly. |
I thought more about it and got some concerns. export default defineConfig({
populateGitInfo: true,
reporter: 'list'
}); @dgozman What do you think? |
We discussed this being an option of the html reporter, but that is not compatible with I think we'd recommend to only enable it on CI anyway: export default defineConfig({
populateGitInfo: !!process.env.CI,
}); |
Created PR: #34329 |
Page(s)
https://playwright.dev/docs/next/api/class-testconfig#test-config-metadata
Description
1. Current
metadata
example does not pass TypeScript check:Result:
2. Documentation should mention the certain fields that are allowed in
metadata
, e.g.The text was updated successfully, but these errors were encountered: