rust-testing
БесплатноБез исполняемых скриптовНе проверенHow to write Skill Doctor tests — unit, integration, CLI, fixtures, determinism, additive-only. Use when adding tests, fixtures, snapshots, or changing cargo…
от KalarisLabs★ 16 звёзд на GitHubОб этом скилле
Testing
Canonical policy: TESTING.md. Do not invent a second harness.
Placement
| Kind | Where |
|---|---|
| Unit | #[cfg(test)] next to the code |
| Integration | crates/<name>/tests/ |
| CLI / exit codes | tests/cli/ against the compiled binary |
| Fixtures | tests/fixtures/{benign,attack,hard_negative,evasion}/ |
| Real malware | tests/fixtures/real_malware/, #[ignore], REAL_MALWARE=1 |
Detector PR checklist (all four)
- Engine or YARA rule
- Positive fixture (must fire)
- Hard-negative (must not fire)
- Test asserting both
Always-on property tests
- Determinism: two scans, equal SHA-256 of JSON.
- Additive-only: L1 CRITICAL + L2 "benign" → CRITICAL remains.
- Offline:
--offlinemakes zero network syscalls (at least: noreqwestconstructed). - Malformed skill: does not panic.
Forbidden
- Network in unit tests.
thread::sleepfor sandbox.- Snapshots with timestamps or absolute paths.
- Live secrets. Use canaries like
AKIA_TEST_CANARY. - Speed assertions in the every-commit suite (see
rust-perf).
Установить rust-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл rust-testing?
How to write Skill Doctor tests — unit, integration, CLI, fixtures, determinism, additive-only. Use when adding tests, fixtures, snapshots, or changing cargo test layout.
Как установить скилл rust-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rust-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic