testing

testing is a skill for Claude Code from TheBeardedBearSAS/claude-craft. It costs 30 tokens per session (1,212 once invoked), scanned A, original, MIT.

A general testing guide based on TDD and BDD. TDD means writing a failing test, making it pass, and then improving the code; BDD focuses tests on expected behaviour.

In plain words
What is it for?
Use it when designing a test strategy, writing tests, reviewing coverage, or deciding between unit, integration, and end-to-end tests.
Why use it?
It provides a common way to organise tests across different languages and frameworks, from small units to complete user flows.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter.

Part of the claude-craft plugin — 58 skills, 96 commands, 58 agents, 5 hooks shipped together

Good fit Use it when designing a test strategy, writing tests, reviewing coverage, or deciding between unit, integration, and end-to-end tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thebeardedbearsas/claude-craft/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 TheBeardedBearSAS/claude-craft --skill testing
Clone the repo
git clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 58 skills, 96 commands, 58 agents, 5 hooks.

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/thebeardedbearsas/claude-craft/testing/github.svg)](https://agentmods.dev/skills/thebeardedbearsas/claude-craft/testing)
Your own site
<a href="https://agentmods.dev/skills/thebeardedbearsas/claude-craft/testing"><img src="https://agentmods.dev/badge/skills/thebeardedbearsas/claude-craft/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/thebeardedbearsas/claude-craft/testing"><img src="https://agentmods.dev/badge/skills/thebeardedbearsas/claude-craft/testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,212 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 59
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00030 $0.01212
Opus 5.5 $0.00012 $0.00485
Sonnet 5.5 $0.00006 $0.00242
Haiku 4.5 $0.00003 $0.00121

Measured 23d ago against content hash fc7c521aa847, 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 23d 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.

.claude/skills/testing/SKILL.md · 148 lines

How it starts

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

Testing - Principes TDD/BDD (2026)

Principes universels de testing pour toutes les technologies du framework Claude-Craft.

Principes fondamentaux

  • TDD Cycle: RED → GREEN → REFACTOR
  • Couverture cible: >= 80%
  • Pyramide: Unit (70%) > Integration (20%) > E2E (10%)
  • Pattern: Arrange-Act-Assert (AAA)
  • Nommage: Tests descriptifs expliquant le comportement

Outils recommandés 2026

Stack Unit/Composants E2E/Browser Mutation Testing
JS/TS/React Vitest 5 (Browser Mode stable) Playwright Stryker
PHP/Laravel/Symfony Pest 5 (PHPUnit 13, PHP 8.4+, Browser Testing) Playwright via Pest Infection
Python pytest 9.x + Ruff 0.17+ Playwright Mutmut
Flutter flutter_test + bloc_test 10+ Patrol 4 built-in
React Native RNTL 14 + Jest Maestro (ou Detox) Stryker

Sources : Vitest Browser Mode, Pest 5 Upgrade Guide, Stryker Mutator

Stratégies 2026

Vitest 5 — Browser Mode stable

Abandonner JSDOM lourd. Chromium/Firefox/WebKit natifs.

// vitest.config.ts
import { defineConfig } from 'vitest/config';
import { playwright } from '@vitest/browser-playwright';

export default defineConfig({
  test: {
    browser: {
      enabled: true,
      provider: playwright(),
      instances: [{ browser: 'chromium' }], // ou 'firefox', 'webkit'
    },
  },
});

Source : Vitest Browser Mode

Mutation Testing — "Coverage ment, mutation scores disent la vérité"

Tester la qualité des tests. Mutation score >= 80%.

# Stryker (JS/TS/C#)
npx stryker run

# Infection (PHP)
vendor/bin/infection --min-msi=80

# Mutmut (Python)
mutmut run

Source : Stryker Mutator

Read the full file on GitHub · 148 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. 23d ago Changed fc7c521aa847
  2. 1mo ago Changed · +30 tokens per session 2eeca7eb2d9e
  3. 1mo ago Changed · +21 lines bd4f524322c4
  4. 3mo ago First seen · 127 lines · 0 tokens per session scan A b680d21d6c1b

Subscribe to this mod's changes

testing is a skill published in the GitHub repository TheBeardedBearSAS/claude-craft (108 stars, last pushed 17d ago), licensed MIT. It adds 30 tokens to every session and 1,212 once invoked, about $0.0001 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.

Related

testing compared with skills from other repositories

testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testingTheBeardedBearSAS/claude-craftSkill10817d agoMITA30Claude Code
agent-e2e-test-specialisttravisjneuman/.claudeSkill116todayMITA75Claude Code
agent-test-generatortravisjneuman/.claudeSkill116todayMITA36Claude Code
outside-in-tddSebastienDegodez/copilot-instructionsSkill19928d agoApache-2.0A35Claude Code, Codex
red-synthesize-greenSebastienDegodez/copilot-instructionsSkill19928d agoApache-2.0A21Claude Code, Codex
test-executionYoshikemolo/mcp-jira-devflowSkill51mo agoMITA28Claude Code, Codex
founder-modeJuanMarchetto/agent-skillsSkill58mo agoMITA96Claude Code