testing
Skill0 starsChanged 4 days agoMITView on GitHub
Which kind of test to write for which kind of change, and the helpers this repo gives you. Use when adding or changing an action, repository, screen, assistant behavior or database migration, or when a test fails.
194 other projects use a version of this.
Adopted by
Most recently taken up by
- NVIDIA/nvcftheir own version, first seen Nov 15, 2026
- adelrodriguez/skillstheir own version, first seen Nov 15, 2026
- pastropsucez/vibe-stacktheir own version, first seen Nov 15, 2026
- theishandubey/dotclaudetheir own version, first seen Nov 15, 2026
- igoroliveirg/claude-copytheir own version, first seen Nov 15, 2026
- JetBrains/intellij-communitytheir own version, first seen Nov 13, 2026
Used with
Projects with it also use bundle-dependency-prs, update-library-template and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillbundle-dependency-prs
Fix broken dependency update PRs and aggregate the ones that work into one PR.
Also in 7 projects that use this
MicrosoftSkillupdate-library-template
Merges the latest Library.Template into this repo (at position of HEAD) and resolves conflicts.
Also in 7 projects that use this
zetaloopSkillassign-copilot
Assigns a GitHub issue to the Copilot coding agent, optionally specifying a custom agent. Use this when asked to assign an issue to Copilot or delegate an issue to CCA.
Also in 3 projects that use this
NVIDIA-NeMoSkillbuild-and-dependency
Dev environment setup for Megatron Bridge — container-based development, uv package management, lockfile regeneration, adding dependencies, Slurm container usage, and common build pitfalls.
Also in 3 projects that use this
timmo001Skillchangeset-scope
Keep all scoped code work contained to the user-defined changeset. Use for implementation, fixes, diagnosis, refactoring, cleanup, and review when explicit instructions, named files, diffs, branches, pull requests, or injected work scopes define the boundary.
Also in 3 projects that use this
JetBrainsSkillmodule-dependencies
Add or modify IntelliJ module dependencies in `.iml` files.
Also in 3 projects that use this
Other versions194 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 194
- modelcontextprotocol/servers★ 92ksame name
- lobehub/lobe-chat★ 84ksame name
- lobehub/lobehub★ 84ksame name
- penpot/penpot★ 62ksame name
- meteor/meteor★ 45ksame name
- iOfficeAI/AionUi★ 34ksame name
- garrytan/gbrain★ 32ksame name
- OpenZeppelin/openzeppelin-contracts★ 27ksame name
- tursodatabase/turso★ 25ksame name
- redis/go-redis★ 22ksame name
184 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibilitySkill
- actionsSkill
- adding-a-featureSkill
- agent-workflowSkill
- app-contextSkill
- approval-and-safetySkill
- backend-proxySkill
- background-workSkill
- build-an-appSkill
- capture-learningsSkill
- clean-architectureSkill
- customizing-the-assistantSkill
- delegate-to-agentSkill
- edit-boundariesSkill
- i18n-and-rtlSkill
- model-providersSkill
- performanceSkill
- permissions-and-platformSkill
- read-the-docsSkill
- reliable-mutationsSkill
- routingSkill
- secretsSkill
- state-managementSkill
- storing-dataSkill
- ui-designSkill
- upgrade-the-frameworkSkill
- verifySkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Don't load this for running the whole gate and reading its output.
- Very specific: line 12
Every change comes with the smallest test that would have failed without it.
- Very specific: line 37
Run one file while working: flutter test test/actions/set_language_test.dart.
“Common” is measured: kept by at least 6 in 10 of the 175 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Testing
Don't load this for running the whole gate and reading its output; see verify.
Rule
Every change comes with the smallest test that would have failed without it. Every action has test/actions/<action_name>_test.dart. Enforced by test/ai/parity_test.dart, which fails when an action has no test file.
Why
The assistant and the UI call the same code, so a test at the action covers both. Tests must not need a network, a real model or the person's data.
How
| Change | Test | Model to copy |
| An action | Call it through a registry over an in-memory database; assert on stored data and the receipt | test/actions/create_item_test.dart, helper test/support/actions_harness.dart: ActionsHarness().call(name, json) runs as the assistant, failsWith(code) matches a failure |
| A repository or DAO | Drift on NativeDatabase.memory() | test/data/repositories/drift_items_repository_test.dart |
| A screen | Widget test with the app's localization, theme and fake services | test/presentation/home/home_screen_test.dart, helper test/support/test_app.dart (pumpTestApp) |
| Assistant behavior across screens | Full app with a scripted model: pumpFullApp, openAssistant, sendToAssistant | test/ai/assistant_flow_test.dart |
| A database change | Migration test from the previous version | The to_v<N>_test.dart template in storing-data |
| A route's screen summary | Table test | test/ai/screen_contexts_test.dart |
| Translations | Key-count test | test/i18n/translations_test.dart |
Details:
- Scripted model:
ScriptedProviderandScriptedStep.text(...),ScriptedStep.toolCalls([...])frompackage:flutter_agentify_core/testing.dartreplace the model. Never call a real one. - Fakes:
test/support/fakes.darthasFakeItemsRepository; the in-memory settings and secret stores are inlib/data/repositories/. - Migrations:
test/generated_migrations/is generated; never edit it. A new schema version needs ato_v<N>_test.dart(storing-data). - SQLite from plain Dart: database tests run on the machine's SQLite library. On Windows,
sqlite3.dllmust be on thePATHfor them to run. - Packages have their own tests (
packages/flutter_agentify_core/test/); run them from the package folder withdart test. App tests run withflutter test. - Run one file while working:
flutter test test/actions/set_language_test.dart.
Anti-patterns
- A widget test that checks an item was created by tapping, instead of testing the action and then the screen showing it.
- A test that reads a real key or calls a real server.
- A test that passes because it asserts nothing about the result (only "does not throw").
- Deleting or loosening a test to turn the gate green.
- Editing a generated migration schema to make a migration test pass.
Verification
flutter testfor the app;tool/check.shfor all four test suites plus the parity test (seeverify).- A new action:
dart run tool/action.dart --write-referencetoo, or the parity test reports a stale reference.
Related skills
actions— the shape of an action under teststoring-data— migrations and their testsmodel-providers— scripted providers versus real onesverify— running everything
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

