eeccc59630
- 安装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)
34 lines
1.2 KiB
JSON
34 lines
1.2 KiB
JSON
{
|
|
"name": "e2e-tests",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"test": "playwright test",
|
|
"test:ui": "playwright test --ui",
|
|
"test:debug": "playwright test --debug",
|
|
"test:headed": "playwright test --headed",
|
|
"test:smoke": "playwright test --grep @smoke",
|
|
"test:regression": "playwright test --grep @regression",
|
|
"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.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"
|
|
}
|
|
}
|