Copilot instructions
.github/instructions/testing.instructions.mdCopilot instructions
Quality
56/100
Scores the file, not the repository.Length
294 words
6 headings · 0 code blocksRepository
1.4k
— · pushed 88 days agoLast changed
3 days ago
First indexed 3 days ago.12345# Test Review Guidelines67## Fixture-Based Testing89- Tests must NOT require real session files on the local machine — use fixture factories from `src/__tests__/fixtures/index.ts`10- Each tool has a `create<Tool>Fixture()` factory that creates a temp directory with realistic session data11- Ground fixture schemas in real session file formats — verify field names against actual tool storage before creating fixtures; do not invent schemas1213## Conversion Coverage1415- `unit-conversions.test.ts` is the primary suite — it must cover all N tools × (N-1) target conversion paths16- Adding a new tool requires: a fixture factory AND conversion tests covering all N-1 directions (as both source and target)17- PRs that add a new parser but do not update `unit-conversions.test.ts` are incomplete1819## Test Quality2021- Each test asserts ONE behavior — not multiple unrelated assertions bundled into a single test case22- Test names should describe the scenario: `should extract session summary from Claude JSONL`23- Tests must be independent — no shared mutable state between test cases24- Use `beforeAll` / `afterAll` for fixture setup and cleanup (create temp dir → run tests → delete temp dir)2526## Regression Tests2728- Bug fixes must include a regression test that fails before the fix and passes after29- PRs that modify parser logic without touching any test file should be flagged — the CI `test-quality` job will also flag this3031## Performance3233- Test timeout is 30 seconds (`vitest.config.ts`) — a test that times out indicates a parser with blocking or synchronous I/O34- Excluded by vitest config: `e2e*`, `real-e2e*`, `stress*`, `injection*`, `parsers.test*` — these require a real environment and are not run in CI35- Node.js 22+ is required; `node:sqlite` built-in is used by OpenCode/Crush fixtures — do not add third-party SQLite deps36
Also in yigitkonur/cli-continues
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| yigitkonur/cli-continues.github/copilot-instructions.md · 1.4k | Copilot instructions | lint-formatstylegitperformance+1 | 59/100 | 3 days ago | |
| yigitkonur/cli-continues.github/instructions/ci.instructions.md · 1.4k | Copilot instructions | setupbuildteststyle+4 | 82/100 | 3 days ago | |
| yigitkonur/cli-continues.github/instructions/parsers.instructions.md · 1.4k | Copilot instructions | testing-strategygitdo-not | 57/100 | 3 days ago | |
| yigitkonur/cli-continues.github/instructions/security.instructions.md · 1.4k | Copilot instructions | stylegitsecurity | 54/100 | 3 days ago | |
| yigitkonur/cli-continues.github/instructions/typescript.instructions.md · 1.4k | Copilot instructions | styletypesgitdo-not | 61/100 | 3 days ago | |
| yigitkonur/cli-continuesAGENTS.md · 1.4k | AGENTS.md | testlint-formatstyletesting-strategy+3 | 87/100 | 3 days ago | |
| yigitkonur/cli-continuesCLAUDE.md · 1.4k | CLAUDE.md | setupbuildteststyle+4 | 94/100 | 3 days ago |
Diff against .github/copilot-instructions.md Diff against .github/instructions/ci.instructions.md Diff against .github/instructions/parsers.instructions.md Diff against .github/instructions/security.instructions.md Diff against .github/instructions/typescript.instructions.md Diff against AGENTS.md Diff against CLAUDE.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| louislam/uptime-kuma.github/copilot-instructions.md · 90k | Copilot instructions | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63 | Copilot instructions | buildlint-formatstylearch+4 | 100/100 | 3 days ago | |
| JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 31k | Copilot instructions | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| thangaram611/second-brain.github/copilot-instructions.md · 0 | Copilot instructions | setupteststylearch+4 | 96/100 | 3 days ago | |
| nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32 | Copilot instructions | setupbuildtestlint-format+11 | 96/100 | 3 days ago | |
| darkmatter/nixmac.github/copilot-instructions.md · 24 | Copilot instructions | setupbuildtestlint-format+8 | 96/100 | 3 days ago | |
| keycloak/keycloak.github/copilot-instructions.md · 36k | Copilot instructions | setupbuildtestlint-format+6 | 93/100 | 3 days ago | |
| jnPiyush/AgentX.github/instructions/typescript.instructions.md · 14 | Copilot instructions | setuptestlint-formatstyle+5 | 92/100 | 3 days ago |
