tatat/agents-playground

test-generation

Generate unit tests, integration tests, and test fixtures for code

First seen Jan 24, 2026

Installation

$ npx skills add tatat/agents-playground --skill test-generation

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from tatat/agents-playground · top by installs.

npx skills add tatat/agents-playground

Browse all from tatat/agents-playground

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 5
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,554 B
  • docs SUMMARY.md 89 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 14 installs

SKILL.md

Test Generation

Generate comprehensive tests for code.

Capabilities

  • Generate unit tests for functions and classes
  • Create integration tests for APIs and services
  • Build test fixtures and mocks
  • Cover edge cases and error conditions

Test Structure

import pytest

class TestClassName:
    """Tests for ClassName."""

    def test_method_success(self):
        """Test method with valid input."""
        result = function_under_test(valid_input)
        assert result == expected_output

    def test_method_edge_case(self):
        """Test method with edge case."""
        result = function_under_test(edge_case_input)
        assert result == edge_case_output

    def test_method_error(self):
        """Test method raises error on invalid input."""
        with pytest.raises(ValueError):
            function_under_test(invalid_input)

Coverage Targets

Type Target
Unit tests 80%+ line coverage
Branch coverage 70%+
Critical paths 100%

Test Categories

  1. Happy path - Normal expected usage
  2. Edge cases - Boundary values, empty inputs
  3. Error cases - Invalid inputs, exceptions
  4. Integration - Component interactions

Fixtures Example

@pytest.fixture
def sample_user():
    return User(name="Test User", email="[email protected]")

@pytest.fixture
def mock_database(mocker):
    return mocker.patch("app.db.connection")