Skip to content

test(cli): split each tool profile's tests by feature - #1090

Merged
alexsoyes merged 1 commit into
nextfrom
test/split-profile-tests-by-feature
Oct 26, 2026
Merged

alexsoyes merged 1 commit into
nextfrom
test/split-profile-tests-by-feature

Conversation

@alexsoyes

Copy link
Copy Markdown
Contributor

🎯 What & why

Split each tool profile's unit tests into one file per feature, out of the sub-agents PR (#1027) so its diff shows only agent changes.

🛠️ How it works

profiles/<tool>.unit.test.ts becomes profiles/<tool>/<feature>.unit.test.ts (agents, skills, rules, commands, mcp, hooks, plugins, settings, content), with the profile's own declarations in profile.unit.test.ts. No assertion changes: same test titles and counts per host as on next. The convention is recorded in cli/aidd_docs/memory/testing.md.

🧪 How to verify

  • cd cli && pnpm exec vitest run --project unit tests/contexts/tools/domain/profiles passes.
  • Per host, grep -c 'it(' over the old file on next equals the sum over the new folder (claude 33, codex 64, copilot 79, cursor 30, opencode 48, vscode 6).

⚠️ Heads-up

Merge before #1027; #1027 then picks up the split by merging next.

✅ I certify

  • I DO CERTIFY I READ EACH LINE OF THE PULL REQUEST BECAUSE I AM A SOFTWARE ENGINEER, NOT A AI PUPPY.

One file per feature under profiles/<tool>/, the profile's own declarations in profile.unit.test.ts. Same test titles and counts per host as the monolithic files.
@alexsoyes
alexsoyes marked this pull request as ready for review October 26, 2026 06:23
@alexsoyes
alexsoyes requested a review from a team as a code owner October 26, 2026 06:23
@alexsoyes
alexsoyes requested review from blafourcade and removed request for a team October 26, 2026 06:23
@alexsoyes
alexsoyes merged commit dd8c352 into next Oct 26, 2026
65 checks passed
@alexsoyes
alexsoyes deleted the test/split-profile-tests-by-feature branch October 26, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants