CtrlK
BlogDocsLog inGet started
Tessl Logo

mocking-test-generator

Generate unit tests with proper mocking for Python (unittest.mock/pytest) or Java (Mockito/JUnit) code. Use when users request test generation, unit tests with mocks, or testing code that has external dependencies like database calls, API requests, file I/O, or network operations. Automatically identifies dependencies to mock and creates executable, maintainable test code.

89

1.12x
Quality

86%

Does it follow best practices?

Impact

91%

1.12x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Evaluation results

87%

9%

Weather Data Pipeline: Test Suite

Python pytest mocking with @patch and fixtures

Criteria
Without context
With context

Uses @patch for HTTP

100%

100%

Uses @patch for DB

100%

100%

Mock() for complex deps

100%

100%

pytest.fixture used

100%

100%

Happy path test

100%

100%

API error test

100%

100%

Mock call verification

100%

100%

AAA structure

0%

0%

Descriptive test names

100%

100%

Mock documentation comments

0%

37%

Complete imports

100%

100%

Does not mock internal logic

0%

100%

97%

17%

Order Notification Service: Java Unit Tests

Java Mockito test structure with ArgumentCaptor

Criteria
Without context
With context

@ExtendWith on class

100%

100%

@Mock for EmailClient

100%

100%

@Mock for AuditLogger

100%

100%

@BeforeEach setup

100%

100%

when().thenReturn() stubbing

75%

62%

Exception scenario test

100%

100%

verify() on mocks

100%

100%

ArgumentCaptor used

0%

100%

Multiple test methods

100%

100%

Descriptive test names

100%

100%

Mock documentation comments

0%

100%

Complete imports

100%

100%

90%

3%

Report Exporter: Python Test Suite

Python mocking env vars, files, datetime, and exceptions

Criteria
Without context
With context

@patch.dict for env vars

100%

100%

mock_open for file reads

100%

100%

mock_open for file writes

100%

100%

@patch for datetime

100%

100%

FileNotFoundError test

100%

100%

side_effect for exceptions

100%

100%

Happy path test

100%

100%

Mock call verification

100%

100%

AAA structure

0%

0%

Mock documentation comments

37%

75%

Does not mock internal logic

100%

100%

Repository
ArabelaTso/Skills-4-SE
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.