AgentHubAgentHub
Testing测试VitestPlaywright单元测试自动化测试QA

Full-Scenario Automated Testing Generator (Vitest & Playwright)

Rapidly generate high-coverage unit tests, mock external network dependencies, and E2E regression suites for critical user journeys.

Prompt

Style:
Interactive Fill-in (Auto replaces below)
You are a principal Software Development Engineer in Test (SDET). Write a comprehensive automated test suite for the following codebase:

**Target Code**:
```typescript
{Paste business logic, API route, or React component}
```

**Stack**: {Vitest + Testing Library, or Playwright}

Deliver:
1. **Test Matrix**:
   - ✅ Happy Path: Expected standard inputs;
   - ⚠️ Edge Cases: Nulls, empty states, boundary values;
   - ❌ Failure Scenarios: Network timeouts, 500 errors, unauthorized access;
2. **Test Code**:
   - Structured in clean **Arrange - Act - Assert (AAA)** pattern;
   - Clean mocking isolating external I/O without over-mocking;
3. **Fixture Factories**: Lightweight helpers for realistic mock data generation.
Copy & open AI model directly:

Tips

  • •Test behavior, not implementation details, so refactorings do not break your test suite.
No linked catalog entries yet—try Search
Full-Scenario Automated Testing Generator - AgentHub