Back to list
tatat

test-generation

by tatat

1🍴 0📅 Jan 5, 2026

SKILL.md


name: test-generation description: Generate unit tests, integration tests, and test fixtures for code

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

TypeTarget
Unit tests80%+ line coverage
Branch coverage70%+
Critical paths100%

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="test@example.com")

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

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon