testing

GitHub

提供应用测试指南,涵盖单元测试、集成测试、LLM评估及E2E测试。包含框架配置、断言原则及常用命令,指导开发者进行行为导向的测试实践。

.claude/skills/testing/SKILL.md elie222/inbox-zero

Trigger Scenarios

编写或运行单元测试 执行集成或数据库测试 进行LLM功能回归或评估

Install

npx skills add elie222/inbox-zero --skill testing -g -y
More Options

Non-standard path

npx skills add https://github.com/elie222/inbox-zero/tree/main/.claude/skills/testing -g -y

Use without installing

npx skills use elie222/inbox-zero@testing

指定 Agent (Claude Code)

npx skills add elie222/inbox-zero --skill testing -a claude-code -g -y

安装 repo 全部 skill

npx skills add elie222/inbox-zero --all -g -y

预览 repo 内 skill

npx skills add elie222/inbox-zero --list

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

Same Skill Collection

.claude/skills/agent-browser/SKILL.md
.claude/skills/changelog/SKILL.md
.claude/skills/cloud-dev-environment/SKILL.md
.claude/skills/code-simplifier/SKILL.md
.claude/skills/create-pr/SKILL.md
.claude/skills/explain-changes/SKILL.md
.claude/skills/fullstack-workflow/SKILL.md
.claude/skills/llm-test/SKILL.md
.claude/skills/llm/SKILL.md
.claude/skills/project-structure/SKILL.md
.claude/skills/qa-label/SKILL.md
.claude/skills/qa-new-flow/SKILL.md
.claude/skills/review-ai-prompt-changes/SKILL.md
.claude/skills/review/SKILL.md
.claude/skills/test-feature/SKILL.md
.claude/skills/ui-components/SKILL.md
.claude/skills/update-packages/SKILL.md
clawhub/inbox-zero-api/SKILL.md
.claude/skills/logging/SKILL.md
.claude/skills/prisma/SKILL.md
.claude/skills/qa-run/SKILL.md
.claude/skills/e2e/SKILL.md
.claude/skills/write-tests/SKILL.md
.claude/skills/wait/SKILL.md

Metadata

Files
0
Version
780453c
Hash
491b8fcb
Indexed
2026-08-20 17:14

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-31 01:19
浙ICP备14020137号-1 $Гость$