feat: 添加测试框架和覆盖率报告功能
feat(测试): 新增Playwright和Vitest测试配置 feat(测试): 添加测试覆盖率报告生成功能 feat(测试): 实现前后端测试脚本集成 fix(测试): 修复测试密码不匹配问题 fix(测试): 修正URL等待策略 fix(测试): 调整错误消息选择器 refactor(测试): 重构测试目录结构 refactor(测试): 优化测试用例组织方式 docs: 更新测试报告文档 docs: 添加测试覆盖率报告模板 ci: 添加Docker测试环境配置 ci: 实现测试自动化脚本 chore: 更新依赖版本 chore: 添加测试相关配置文件
This commit is contained in:
@@ -13,11 +13,19 @@
|
||||
"preview": "vite preview",
|
||||
"test": "vitest --run",
|
||||
"test:ui": "vitest --ui",
|
||||
"test:unit": "vitest --run --coverage",
|
||||
"test:coverage": "vitest --run --coverage",
|
||||
"test:e2e": "playwright test",
|
||||
"test:e2e:perf": "node scripts/measure-e2e-performance.js",
|
||||
"test:perf": "node scripts/performance-test.js performance",
|
||||
"test:load": "node scripts/performance-test.js load",
|
||||
"test:perf:all": "node scripts/performance-test.js all",
|
||||
"test:edge": "playwright test edge-cases.spec.ts",
|
||||
"test:performance-opt": "playwright test performance-optimization.spec.ts",
|
||||
"test:parallel-opt": "playwright test parallel-optimization.spec.ts",
|
||||
"test:all-opt": "playwright test edge-cases.spec.ts performance-optimization.spec.ts parallel-optimization.spec.ts",
|
||||
"test:monitor": "node e2e/performanceMonitor.js report",
|
||||
"type-check": "vue-tsc --noEmit",
|
||||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx --fix --ignore-path .gitignore",
|
||||
"format": "prettier --write src/"
|
||||
},
|
||||
@@ -37,6 +45,7 @@
|
||||
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
||||
"@typescript-eslint/parser": "^6.18.1",
|
||||
"@vitejs/plugin-vue": "^6.0.3",
|
||||
"@vitest/coverage-v8": "^4.1.1",
|
||||
"@vitest/ui": "^4.0.16",
|
||||
"@vue/test-utils": "^2.4.3",
|
||||
"eslint": "^8.56.0",
|
||||
|
||||
Reference in New Issue
Block a user