Agent skill
test-generator-omerlefaruk-casarerpa-b6e7052d
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:
# 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
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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?