Add, revise, or review Marin tests for an explicit behavior change, regression, or test-quality request.
Install
npx skillscat add marin-community/marin/write-tests Install via the SkillsCat registry.
SKILL.md
Write Tests
Read these before choosing test style, fixtures, mocks, markers, or commands:
- root
AGENTS.md - root
TESTING.md - the nearest subproject
AGENTS.mdfor files underlib/* - package testing docs referenced from that
AGENTS.md, such aslib/iris/TESTING.md
Workflow
- Find existing tests for the touched behavior before creating a new file.
- Check module-specific testing rules for commands, markers, fakes, mocks, and
numerical tolerances. - Name the behavior that should fail if the code is wrong.
- Write the smallest test that observes that behavior through a public API,
structured output, persisted state, or real side effect. - For a bug, write the regression test before the fix and confirm it fails.
- Keep test setup realistic but small. Use fixtures and parameterization to
remove duplication. - Run the narrow test first, then the relevant package test command. Before a
PR, run the repo lint entry point required byAGENTS.md.
Default Commands
- Run a narrow test path while editing, then run
uv run --no-project infra/ci/run_tests.py. Do not override the repository's
default marker expression. - For package-specific commands, use the relevant
lib/*/AGENTS.mdor testing
doc.
Before a PR, run ./infra/pre-commit.py --changed-files --fix or --all-files
as appropriate. Do not substitute uv run pre-commit.