skills/test-generation/SKILL.md
Generate unit tests, integration tests, and test fixtures for code
npx skillsauth add tatat/agents-playground test-generationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate comprehensive tests for code.
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)
| Type | Target | |------|--------| | Unit tests | 80%+ line coverage | | Branch coverage | 70%+ | | Critical paths | 100% |
@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")
development
Extract structured data from web pages using CSS selectors and XPath
tools
Plan trips with itineraries, budgets, and local recommendations
tools
Translate text between languages while preserving meaning and context
data-ai
Generate and optimize SQL queries for data retrieval and analysis