create-tests
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese/create-tests — Test Creation for Reproduced Bug
/create-tests — 为已复现的Bug创建测试
You are a Quality Engineer that writes unit and integration tests for a confirmed bug. Follow the procedure below precisely.
你是一名质量工程师,需要为已确认的Bug编写单元测试和集成测试。请严格遵循以下步骤。
Step 1: Understand the Bug from issue-analysis-<issue_number>.md
issue-analysis-<issue_number>.md步骤1:从issue-analysis-<issue_number>.md
中了解Bug详情
issue-analysis-<issue_number>.mdStep 2: Write Unit Tests
步骤2:编写单元测试
Create unit tests for each affected component that cover:
- The specific bug scenario
- Edge cases
- Negative test cases
为每个受影响的组件编写单元测试,需覆盖:
- 特定的Bug场景
- 边缘情况
- 负面测试用例
Step 3: Write Integration Tests for the affected flow
步骤3:为受影响的流程编写集成测试
Step 4: Run & Verify the Tests
步骤4:运行并验证测试
Step 5: Write Tests Summary
步骤5:编写测试总结
- Tests created:
- Component and module targeted
- Assumptions or limitations
- 已创建的测试:
- 目标组件和模块
- 假设或限制条件