qatest-execution

Solid

测试执行方法,包含测试框架检测、测试运行、结果解析

Testing & QA 410 stars 44 forks Updated today MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
87
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
74
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 测试执行方法 ## 强制要求:真实执行测试 **你必须真正执行测试,禁止生成 Mock 数据!** ## 测试执行流程 1. **检测项目类型和测试框架** 2. **根据项目类型执行测试** 3. **执行 E2E / 集成测试** 4. **解析测试输出**(总数、通过数、失败数、覆盖率) ## 测试框架检测 ### JavaScript/TypeScript - Jest: `jest.config.js`, `"jest"` in package.json - Vitest: `vitest.config.js`, `"vitest"` in package.json - Playwright: `playwright.config.js` - Cypress: `cypress.json` ### Python - pytest: `pytest.ini`, `"pytest"` in dependencies - unittest: 内置 ### Go - `*_test.go` 文件 ## 测试命令 | 语言 | 单元测试 | E2E测试 | |------|----------|---------| | Node.js | `npm test` | `npx playwright test` | | Python | `pytest` | `pytest tests/e2e` | | Go | `go test ./...` | - | ## Playwright E2E 执行细节 > **完整方法论**:详见 `Skill(skill: "qa/e2e-playwright")` ### 检测 Playwright 项目 检查以下标志确认项目使用 Playwright: - `playwright.config.ts` 或 `playwright.config.js` 存在 - `package.json` 中包含 `@playwright/test` 依赖 - `e2e/` 或 `tests/e2e/` 目录存在 ### 执行命令 ```bash # 安装浏览器(首次或 CI 环境) npx playwright install --with-deps # 运行全部 E2E 测试 npx playwright test # 仅 critical 标签(门禁加速) npx playwright test --grep @critical # 指定浏览器 npx playwright test --project=chromium # JSON 报告(门禁解析用) npx playwright test --reporter=json ``` ### 结果解析 Playwright JSON 报告关键字段: | 字段 | 说明 | |------|------| | `stats.expected` | 通过的测试数 | | `stats.unexpected` | 失败的测试数 | | `stats.flaky` | 重试后通过的测试数 | | `stats.skipped` | 跳过的测试数 | ### 失败排查 ```bash # 查看 trace(失败时自动生成) npx playwright show-trace <trace.zip路径> # 打开 HTML 报告 npx playwright show-report ```

Details

Author
echoVic
Repository
echoVic/boss-skill
Created
4 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Testing & QA Solid

qae2e-playwright

Playwright E2E 测试完整方法论,涵盖项目初始化、Page Object Model、认证复用、API Mock、视觉回归、多浏览器测试、CI 集成和调试技巧

410 Updated today
echoVic
Testing & QA Listed

doa-e2etest

端到端测试全流程:安装配置 Playwright → 编写 E2E 测试用例 → 执行测试 → 生成精美 HTML 报告 → 输出 PDF。USE FOR: E2E测试、端到端测试、Playwright测试、前端自动化测试、编写E2E用例、生成测试报告、测试报告PDF、测试报告HTML、Playwright配置、自动化回归测试、UI测试、冒烟测试。DO NOT USE FOR: 单元测试(使用 test-driven-development skill)、API测试、性能测试。

4 Updated 6 days ago
medalsoftchina
Testing & QA Listed

testing

Testing strategies and methodologies including TDD and E2E testing. Use when writing tests, implementing TDD workflow, or setting up E2E test infrastructure.

43 Updated 1 months ago
xiaobei930
Testing & QA Listed

fec-e2e-testing

Use when creating, maintaining, debugging, or reviewing real-browser end-to-end tests with Playwright or Cypress, including Page Object models, CI artifacts, traces, flaky tests, cross-page visual regression, and critical user journeys such as login, payment, permissions, or CRUD. For layer planning or tests close to UI components, choose the matching testing workflow first; Chinese triggers include E2E, 端到端测试, Playwright, Cypress.

15 Updated today
bovinphang
Testing & QA Solid

qatest-strategy

测试策略和测试金字塔原则,定义单元测试、集成测试、E2E测试的分布和覆盖要求

410 Updated today
echoVic