Skip to content
Back to skills

Test Generator

ASecurity

Generate comprehensive test suites ensuring requirements are met. Strategies for Unit, Integration, and E2E testing.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 10, 2026
testingtestingapidatabasefrontendbackend

Works with

  • api

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add B4san/AC-framework --skill test-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/b4san-test-generator/badge)](https://www.skillsdirectory.com/skills/b4san-test-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: test-generator
description: Generate comprehensive test suites ensuring requirements are met. Strategies for Unit, Integration, and E2E testing.
---

# Test Generation and Strategy

## Overview

Use this skill to systematically test features by generating high-quality test cases based on specifications and architectural design.

## Workflow

1.  **Analyze Requirements**:
    *   Understand the "Why" and "What" from specs and user stories.
    *   Identify key scenarios, edge cases, and failure modes.

2.  **Define Test Strategy**:
    *   **Unit Tests**: Test individual functions/methods in isolation. Mock external dependencies.
    *   **Integration Tests**: Test interactions between modules (e.g., API + Database).
    *   **End-to-End (E2E) Tests**: Test complete user flows from frontend to backend.
    *   **Pyramid**: Ideally follow the test pyramid (Many Unit > Some Integration > Few E2E).

3.  **Generate Test Code**:
    *   Write test cases *before* implementation if possible (TDD).
    *   Use established testing frameworks (Jest, PyTest, Mocha, Cypress, Playwright).
    *   Ensure descriptive test names: `it("should return 404 when user not found")`.
    *   Apply AAA pattern: Arrange, Act, Assert.

## Quality Checklist

*   **Coverage**: Do tests cover positive, negative, and edge cases?
*   **Isolation**: Are unit tests independent and fast?
*   **Reliability**: Are tests deterministic (no flaky tests)?
*   **Mocking**: Are external services mocked appropriately?

## Output

*   Fully functional test files.
*   Instructions on how to run tests.
*   Suggestions for coverage improvements.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.