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:
+8
-1
@@ -12,14 +12,21 @@
|
||||
"test:performance": "playwright test --grep @performance",
|
||||
"test:responsive": "playwright test --grep @responsive",
|
||||
"test:visual": "playwright test --grep @visual",
|
||||
"test:accessibility": "playwright test --grep @accessibility",
|
||||
"test:security": "playwright test --grep @security",
|
||||
"test:report": "playwright show-report",
|
||||
"test:allure": "allure generate allure-results --clean -o allure-report",
|
||||
"test:allure:open": "allure open allure-report",
|
||||
"test:allure:serve": "allure serve allure-results",
|
||||
"test:all-with-progress": "node run-tests-with-progress.js",
|
||||
"install": "playwright install --with-deps"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@axe-core/playwright": "^4.9.0",
|
||||
"@playwright/test": "^1.48.0",
|
||||
"@playwright/test": "^1.58.2",
|
||||
"@types/node": "^20.11.0",
|
||||
"allure-commandline": "^2.37.0",
|
||||
"allure-playwright": "^3.5.0",
|
||||
"glob": "^13.0.6",
|
||||
"typescript": "^5.3.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user