Agent Skills
› elie222/inbox-zero
› testing
testing
GitHub提供应用测试指南,涵盖单元测试、集成测试、LLM评估及E2E测试。包含框架配置、断言原则及常用命令,指导开发者进行行为导向的测试实践。
Trigger Scenarios
编写或运行单元测试
执行集成或数据库测试
进行LLM功能回归或评估
Install
npx skills add elie222/inbox-zero --skill testing -g -y
SKILL.md
Frontmatter
{
"name": "testing",
"description": "Guidelines for testing the application with Vitest, including unit tests, integration tests (emulator), AI tests, and eval suites for LLM features"
}
Testing
All testing guidance lives in this directory. Read the relevant file for your task:
| Type | File | When to use |
|---|---|---|
| Unit tests | unit.md | Framework setup, mocks, colocated tests |
| Writing tests | write-tests.md | What to test, what to skip, workflow |
| LLM tests | llm.md | Tests that call real LLMs (pnpm test-ai) |
| Eval suite | eval.md | Cross-model comparison, LLM-as-judge |
| Integration | integration.md | Emulator-backed tests (pnpm test-integration) |
| Database | apps/web/__tests__/db/README.md |
Real Postgres, for unique constraints and updateMany count guards (pnpm test-db) |
| E2E tests | e2e.md | Real email workflow tests from inbox-zero-e2e repo |
Prefer behavior-focused assertions; avoid freezing prompt copy or internal call shapes unless those exact values are the contract under test.
Quick Commands
pnpm test path/to/file.test.ts # Single unit test
pnpm test # All unit tests
pnpm test-integration # Integration tests (emulator)
pnpm test-db # Database tests (needs DATABASE_URL on a throwaway db)
pnpm test-ai ai-regression/your-feature # Live AI regression test
EVAL_MODELS=all pnpm test-ai eval/your-feature # Eval across models
Version History
- 633a2ab Current 2026-08-20 17:14


