testing

testing is a skill for Claude Code from atretyak1985/swarmery. It costs 44 tokens per session (863 once invoked), scanned A, original, Apache-2.0.

A guide for writing, running, and debugging automated tests, including unit tests and end-to-end tests. End-to-end tests check a complete user flow through a running application.

In plain words
What is it for?
It helps create and run Python, TypeScript, browser, integration, and deployment-related tests, then investigate failures.
Why use it?
It helps catch regressions and verify that software behaves correctly while avoiding tests that merely mirror implementation details.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the core plugin — 37 skills, 8 commands, 13 agents shipped together

Good fit It helps create and run Python, TypeScript, browser, integration, and deployment-related tests, then investigate failures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atretyak1985/swarmery/testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add atretyak1985/swarmery --skill testing
Clone the repo
git clone --depth 1 https://github.com/atretyak1985/swarmery

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 37 skills, 8 commands, 13 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/atretyak1985/swarmery/testing/github.svg)](https://agentmods.dev/skills/atretyak1985/swarmery/testing)
Your own site
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/testing"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/testing"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 863 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00863
Opus 5.5 $0.00018 $0.00345
Sonnet 5.5 $0.00009 $0.00173
Haiku 4.5 $0.00004 $0.00086

Measured 1mo ago against content hash 08be6f3cf80e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/core/skills/testing/SKILL.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Purpose

Write tests, run test suites, and debug test failures across the project's repositories (.claude/project.json → repos). Typical layout: a device/edge repo <device> (Python/pytest), the main app apps/<mainApp> (TypeScript/Jest + RTL, Playwright E2E), and an infrastructure repo (deployment config via template render + dry-run); placeholders come from project.json → mainApp / device.

Rules (never violate)

  1. Verify the source module exists (Glob/Read) before writing a test — never test a module you cannot locate.
  2. Always run a test after writing it; never return a test that was not executed and passing.
  3. Test behavior, not implementation; no vacuous assertions (expect(true).toBe(true)).
  4. A single test file stays under 200 lines — split by feature area if larger.
  5. Check prerequisites before integration/E2E runs: make test-all needs a database, npm run test:e2e needs a running app.
  6. Never delete a flaky test or run npm install/pip install without user approval.

Resources

  • Read resources/writing-test-patterns.md when writing tests: philosophy (AAA, TDD), the testing pyramid, the framework/location/naming table, and code patterns for pytest, Jest, RTL, Playwright, and deployment config dry-runs.
  • Read resources/running-and-debugging.md when running suites or debugging failures: per-repo commands, the 4-step debug procedure, self-check, common mistakes, escalation, and failure modes.

How to use

What it does

A hands-on test engineer: writes new tests, runs existing suites, and debugs failures across a multi-repo project — pytest, Jest with React Testing Library, Playwright browser flows, deployment config through template renders and dry-run installs. It picks the right framework, file location, and naming convention for the repo, then runs the test to prove it passes.

When to use it

  • Tests needed for a module you just implemented, or added to existing code.
  • Running a suite for pass/fail; a failing or flaky test needing its root cause found and fixed.

Read the full file on GitHub · 70 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 70 lines · 44 tokens per session scan A 08be6f3cf80e

Subscribe to this mod's changes

testing is a skill published in the GitHub repository atretyak1985/swarmery (7 stars, last pushed yesterday), licensed Apache-2.0. It adds 44 tokens to every session and 863 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.