feat: enable github reporter

This commit is contained in:
lawvs
2023-02-07 01:22:39 +08:00
parent 3daf8c00a4
commit ad3e18cb1a
2 changed files with 10 additions and 0 deletions

View File

@@ -39,6 +39,11 @@ const config: PlaywrightTestConfig = {
COVERAGE: process.env.COVERAGE || 'false',
},
},
// 'github' for GitHub Actions CI to generate annotations, plus a concise 'dot'
// default 'list' when running locally
// See https://playwright.dev/docs/test-reporters#github-actions-annotations
reporter: process.env.CI ? 'github' : 'list',
};
export default config;