mcpField
T
testing

testing

github.com/elie222Testing & quality12.8k37 installsUpdated today
Repository

About testing

A testing guide for project contributors, organized by test type with relevant documentation and commands. It covers unit, integration, database, end-to-end, and LLM testing and evaluation.

Key features

  1. 01Guidance organized by test type
  2. 02Commands for unit and integration tests
  3. 03Database and end-to-end test notes
  4. 04LLM regression and model evaluation

Use cases

  1. 01Run unit tests for one file
  2. 02Execute emulator-backed integration tests
  3. 03Compare evaluation results across models

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/elie222/inbox-zero --skill testing

After installing, type/testingin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

e2e.md
eval.md
integration.md
llm.md
unit.md
write-tests.md

Details

From the project README

Testing

All testing guidance lives in this directory. Read the relevant file for your task:

TypeFileWhen to use
Unit testsunit.mdFramework setup, mocks, colocated tests
Writing testswrite-tests.mdWhat to test, what to skip, workflow
LLM testsllm.mdTests that call real LLMs (pnpm test-ai)
Eval suiteeval.mdCross-model comparison, LLM-as-judge
Integrationintegration.mdEmulator-backed tests (pnpm test-integration)
Databaseapps/web/__tests__/db/README.mdReal Postgres, for unique constraints and updateMany count guards (pnpm test-db)
E2E testse2e.mdReal 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

Comments

Markdown supported