testing-strategy

testing-strategy is a skill for Claude Code from parisgroup-ai/imersao-ia-setup. It costs 66 tokens per session (588 once invoked), scanned A, original, MIT.

A guide for creating structured test suites, including unit tests for individual pieces, integration tests for connected parts, and end-to-end tests for complete user flows. It covers test setup, test data, mocks, naming, and coverage goals.

In plain words
What is it for?
Use it when adding unit, integration, or end-to-end tests with tools such as Jest, Vitest, Pytest, or similar frameworks.
Why use it?
It provides a consistent way to test different layers of an application instead of relying on one kind of test. This helps teams check both isolated logic and real workflows.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the imersao plugin — 74 skills, 7 commands shipped together

Good fit Use it when adding unit, integration, or end-to-end tests with tools such as Jest, Vitest, Pytest, or similar frameworks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/parisgroup-ai/imersao-ia-setup/testing-strategy
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 parisgroup-ai/imersao-ia-setup --skill testing-strategy
Clone the repo
git clone --depth 1 https://github.com/parisgroup-ai/imersao-ia-setup

Made for: Claude Code.

Or install imersao, the plugin that ships this one along with the rest of its 74 skills, 7 commands.

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-strategy

README.md
[![agentmods](https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/testing-strategy/github.svg)](https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/testing-strategy)
Your own site
<a href="https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/testing-strategy"><img src="https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/testing-strategy/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-strategy

Your own site · 80×15
<a href="https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/testing-strategy"><img src="https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/testing-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 588 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.00066 $0.00588
Opus 5.5 $0.00026 $0.00235
Sonnet 5.5 $0.00013 $0.00118
Haiku 4.5 $0.00007 $0.00059

Measured 11d ago against content hash 6d005992485b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

testing-strategy 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 11d 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/imersao/skills/testing-strategy/SKILL.md · 111 lines

How it starts

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

Testing Strategy Skill

Test Types

Type Purpose Speed Coverage Target
Unit Single function/class Fast 80%+ business logic
Integration Module interactions Medium Critical paths
E2E Full user flows Slow Happy paths

Test Structure (AAA Pattern)

describe('UserService', () => {
  describe('createUser', () => {
    it('should create user with valid data', async () => {
      // Arrange
      const userData = { name: 'John', email: '[email protected]' };
      const mockRepo = createMockRepository();
      const service = new UserService(mockRepo);

      // Act
      const result = await service.createUser(userData);

      // Assert
      expect(result.id).toBeDefined();
      expect(mockRepo.save).toHaveBeenCalledWith(expect.objectContaining(userData));
    });
  });
});

Naming Convention

Pattern: should_expectedBehavior_when_condition

it('should return null when user not found', () => {});
it('should throw ValidationError when email invalid', () => {});

Test Data Factories

import { faker } from '@faker-js/faker';

export function createUser(overrides = {}) {
  return {
    id: faker.string.uuid(),
    name: faker.person.fullName(),
    email: faker.internet.email(),
    ...overrides,
  };
}

Mocking Guidelines

Mock these:

  • Database repositories
  • HTTP clients
  • External services
  • Time/Date

Don't mock:

  • The class under test
  • Simple value objects
  • Pure functions
const mockRepo = {
  findById: jest.fn(),
  save: jest.fn(),
};
mockRepo.findById.mockResolvedValue(createUser());

Integration Test Setup

beforeAll(async () => {
  await database.migrate();
});

afterAll(async () => {
  await database.close();
});

beforeEach(async () => {
  await database.truncateAll();
});

Checklist

  • Tests follow AAA pattern
  • Test names describe behavior
  • External dependencies mocked
  • Test data uses factories
  • No test interdependencies
  • Coverage meets targets

Read the full file on GitHub · 111 lines

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. 11d ago First seen · 111 lines · 66 tokens per session scan A 6d005992485b

Subscribe to this mod's changes

testing-strategy is a skill published in the GitHub repository parisgroup-ai/imersao-ia-setup (1 stars, last pushed 10d ago), licensed MIT. It adds 66 tokens to every session and 588 once invoked, about $0.0003 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-10-06.