Agent skill

test-generator-omerlefaruk-casarerpa-b6e7052d

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/test-generator-omerlefaruk-casarerpa-b6e7052d

SKILL.md

Test Generator

Generate pytest test suites following CasareRPA testing patterns.

Quick Start

For node tests:

python
# tests/nodes/{category}/test_{node_name}.py
@pytest.fixture
def node():
    return {NodeName}Node()

@pytest.mark.asyncio
async def test_execute_success(node, mock_context):
    result = await node.execute(mock_context)
    assert result.success is True

Test Types

Component Reference Location
Nodes references/node-tests.md Detailed node testing patterns
Controllers references/controller-tests.md UI controller testing
Use Cases references/use-case-tests.md Application layer tests
Domain Entities references/domain-tests.md Pure logic tests

Coverage Checklist

  • Initialization tests
  • Happy path (success cases)
  • Sad path (error cases)
  • Edge cases (boundary conditions)
  • External resource mocking
  • Logging verification

Running Tests

bash
pytest tests/ -v                    # All tests
pytest tests/nodes/browser/ -v      # Category only
pytest tests/ --cov=casare_rpa      # With coverage

Examples

See examples/ for complete test file examples.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results