feat: 建立Allure测试报告系统

- 安装allure-playwright和allure-commandline依赖
- 添加Allure相关的npm脚本(test:allure、test:allure:open、test:allure:serve)
- 在playwright.config.ts中集成Allure reporter
- 创建Allure测试报告系统使用指南
- 支持测试描述、步骤、标签、严重级别、套件、链接、附件、参数等功能
- 支持CI/CD集成(Woodpecker、GitHub Actions、GitLab CI)
This commit is contained in:
张翔
2026-02-28 16:46:55 +08:00
parent 927264b2f0
commit eeccc59630
3 changed files with 688 additions and 2 deletions
+6 -1
View File
@@ -14,7 +14,12 @@ export default defineConfig({
['json', { outputFile: 'test-results/results.json' }],
['junit', { outputFile: 'test-results/junit.xml' }],
['line'],
['list']
['list'],
['allure-playwright', {
outputFolder: 'allure-results',
detail: true,
suiteTitle: false,
}],
],
timeout: env.timeout,
expect: {