Test Analysis Extensions
microsoft/testfx
Provides file paths to language-specific reference files for the test ANALYSIS skills (assertion-quality, test-anti-patterns, test-gap-analysis, test-smell-detection, test-tagging).
Automatically generates comprehensive unit tests for functions, classes, and modules.
$ npx skills add ArabelaTso/Skills-4-SE --skill unit-test-generator -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ArabelaTso/Skills-4-SE unit-test-generator --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/unit-test-generator .claude/skills/unit-test-generator && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "unit-test-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/unit-test-generator into .claude/skills/unit-test-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "unit-test-generator", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/unit-test-generatorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ArabelaTso/Skills-4-SE --skill unit-test-generator -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ArabelaTso/Skills-4-SE unit-test-generator --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/unit-test-generator .agents/skills/unit-test-generator && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "unit-test-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/unit-test-generator into .agents/skills/unit-test-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "unit-test-generator", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ArabelaTso/Skills-4-SE --skill unit-test-generator -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ArabelaTso/Skills-4-SE unit-test-generator --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/unit-test-generator .cursor/skills/unit-test-generator && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "unit-test-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/unit-test-generator into .cursor/skills/unit-test-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "unit-test-generator", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ArabelaTso/Skills-4-SE.git --path skills/unit-test-generator--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ArabelaTso/Skills-4-SE --skill unit-test-generator -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ArabelaTso/Skills-4-SE unit-test-generator --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/unit-test-generator .gemini/skills/unit-test-generator && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "unit-test-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/unit-test-generator into .gemini/skills/unit-test-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "unit-test-generator", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ArabelaTso/Skills-4-SE unit-test-generatorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ArabelaTso/Skills-4-SE --skill unit-test-generator -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/unit-test-generator .github/skills/unit-test-generator && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "unit-test-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/unit-test-generator into .github/skills/unit-test-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "unit-test-generator", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ArabelaTso/Skills-4-SE --skill unit-test-generator -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ArabelaTso/Skills-4-SE unit-test-generator --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/unit-test-generator .opencode/skills/unit-test-generator && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "unit-test-generator" agent skill from https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/unit-test-generator into .opencode/skills/unit-test-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "unit-test-generator", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
unit-test-generatorAutomatically generates comprehensive unit tests for functions, classes, and modules.
Unit Test Generator is an agent skill from ArabelaTso/Skills-4-SE. Automatically generates comprehensive unit tests for functions, classes, and modules. Use when you need to create tests for Python (pytest, unittest) or Java (JUnit, TestNG) code. Generates tests with comprehensive coverage including happy paths, edge cases, and error conditions. Analyzes existing test patterns in the codebase to match style and conventions. Supports mocking, parameterized tests, fixtures, and follows best practices for each framework.
Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/assertion_guide.md` and `references/test_patterns.md`).
It sits in Testing & QA, covering Unit testing. It works with JUnit, pytest, Java and Python. The repository describes itself as: A curated list of 180+ useful Claude Skills for Software Engineering and resources for customizing AI for SE workflows. The licence is Apache-2.0.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 4f38503. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python and java).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Unit Test Generator loads about 2.9k tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 119 tokens; SKILL.md has 848 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ArabelaTso/Skills-4-SE at commit 4f38503, republished under its Apache-2.0 licence (© ArabelaTso). 848 words, ~2,863 tokens.
.claude/skills/unit-test-generator/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Automatically generate comprehensive unit tests for your code.
This skill helps you generate high-quality unit tests by:
Examine the source code to understand:
Function Signature:
Function Behavior:
Example Analysis:
def calculate_discount(price: float, discount_percent: float) -> float:
"""Calculate discounted price.
Args:
price: Original price (must be positive)
discount_percent: Discount percentage (0-100)
Returns:
Discounted price
Raises:
ValueError: If price is negative or discount is invalid
"""
if price < 0:
raise ValueError("Price cannot be negative")
if not 0 <= discount_percent <= 100:
raise ValueError("Discount must be between 0 and 100")
return price * (1 - discount_percent / 100)Analysis:
Determine all test scenarios using the Comprehensive Coverage approach:
1. Happy Path Tests - Normal, expected usage
2. Edge Case Tests - Boundary conditions
3. Error Condition Tests - Invalid inputs
4. Special Cases - Domain-specific scenarios
Example Test Cases for calculate_discount:
| Category | Test Case | Input | Expected |
|---|---|---|---|
| Happy path | Normal discount | price=100, discount=20 | 80.0 |
| Happy path | No discount | price=100, discount=0 | 100.0 |
| Happy path | Full discount | price=100, discount=100 | 0.0 |
| Edge case | Zero price | price=0, discount=50 | 0.0 |
| Edge case | Small discount | price=100, discount=0.01 | 99.99 |
| Error | Negative price | price=-10, discount=20 | ValueError |
| Error | Discount too high | price=100, discount=101 | ValueError |
| Error | Negative discount | price=100, discount=-5 | ValueError |
Before generating tests, analyze existing tests in the codebase to match style:
Look for:
test_*.py, *_test.py, *Test.java)assert, self.assertEqual, assertThat)test_function_does_something, testFunctionDoesSomething)Python Example - Analyze Existing Tests:
# If existing tests use this pattern:
class TestUserService:
@pytest.fixture
def user_service(self):
return UserService()
def test_create_user_with_valid_data_succeeds(self, user_service):
# Arrange
user_data = {"name": "Alice", "email": "alice@example.com"}
# Act
user = user_service.create_user(user_data)
# Assert
assert user.name == "Alice"
assert user.email == "alice@example.com"Pattern Identified:
assertJava Example - Analyze Existing Tests:
// If existing tests use this pattern:
public class UserServiceTest {
private UserService userService;
@Before
public void setUp() {
userService = new UserService();
}
@Test
public void testCreateUserWithValidData() {
// given
UserData data = new UserData("Alice", "alice@example.com");
// when
User user = userService.createUser(data);
// then
assertEquals("Alice", user.getName());
assertEquals("alice@example.com", user.getEmail());
}
}Pattern Identified:
@Before setupassertEquals assertionstestCreate complete, runnable tests following the identified patterns.
Test Structure Template:
1. Test file/class setup
2. Fixtures/setup methods (if needed)
3. Happy path tests
4. Edge case tests
5. Error condition tests
6. Cleanup/teardown (if needed)Python Example - Generated Tests:
See references/test_patterns.md for full example with 9 comprehensive tests covering happy paths, edge cases, and error conditions.
Java Example - Generated Tests:
See references/test_patterns.md for full JUnit example with comprehensive coverage.
When the code under test has dependencies (databases, APIs, external services), generate tests with appropriate mocks.
Identify Dependencies:
Python Mocking Pattern:
@pytest.fixture
def mock_dependency():
return Mock()
def test_with_mock(mock_dependency):
# Arrange
mock_dependency.method.return_value = expected_value
# Act
result = code_under_test(mock_dependency)
# Assert
mock_dependency.method.assert_called_once()
assert result == expected_valueJava Mocking Pattern (Mockito):
@Mock
private Dependency dependency;
@Test
public void testWithMock() {
// given
when(dependency.method()).thenReturn(expectedValue);
// when
Result result = codeUnderTest(dependency);
// then
verify(dependency).method();
assertEquals(expectedValue, result);
}For detailed mocking examples, see references/test_patterns.md.
Include comments explaining:
Coverage Summary Example:
"""
Test coverage for calculate_discount function:
Happy Path (3 tests):
- Normal discount calculation
- Zero discount (no change)
- Full discount (price becomes 0)
Edge Cases (3 tests):
- Zero price
- Very small discount percentage
- Large price values
Error Conditions (3 tests):
- Negative price
- Discount > 100%
- Negative discount
Total: 9 tests covering all execution paths
"""For testing multiple similar scenarios efficiently.
Python (pytest):
@pytest.mark.parametrize("price,discount,expected", [
(100, 20, 80),
(100, 0, 100),
(100, 100, 0),
(50, 10, 45),
(200, 25, 150),
])
def test_calculate_discount_various_inputs(price, discount, expected):
result = calculate_discount(price, discount)
assert result == expectedJava (JUnit 5):
@ParameterizedTest
@CsvSource({
"100.0, 20.0, 80.0",
"100.0, 0.0, 100.0",
"100.0, 100.0, 0.0"
})
void testCalculateDiscountVariousInputs(double price, double discount, double expected) {
assertEquals(expected, calculator.calculateDiscount(price, discount), 0.001);
}For classes that maintain state across method calls, see references/test_patterns.md for complete examples of:
Key patterns:
@pytest.fixture for setup/teardown@pytest.mark.parametrize for data-driven testspytest.raises() for exception testingpytest.approx() for floating point comparisonsmocker fixture (pytest-mock) for mockingTest file naming: test_*.py or *_test.py
Key patterns:
unittest.TestCasesetUp() and tearDown() methodsself.assertEqual(), self.assertTrue(), etc.self.assertRaises() for exceptionsunittest.mock for mockingKey patterns:
@Before and @After for setup/teardown@Test annotation on test methodsassertEquals(), assertTrue(), etc.@Test(expected = Exception.class) for exceptionsKey patterns:
@BeforeEach and @AfterEach@Test annotationassertEquals(), assertThrows(), etc.@ParameterizedTest for data-driven tests@ExtendWith(MockitoExtension.class) for Mockitoreferences/test_patterns.md - Complete examples for common scenarios (mocking, stateful classes, async code, database operations, file I/O)references/assertion_guide.md - Framework-specific assertion reference and best practices| Scenario | Python (pytest) | Java (JUnit) |
|---|---|---|
| Basic test | def test_name(): | @Test public void testName() |
| Setup | @pytest.fixture | @Before (JUnit 4) or @BeforeEach (JUnit 5) |
| Exception test | with pytest.raises(Error): | @Test(expected = Error.class) or assertThrows() |
| Parameterized | @pytest.mark.parametrize | @ParameterizedTest |
| Mocking | mocker.patch() or Mock() | @Mock with Mockito |
| Float comparison | pytest.approx() | assertEquals(x, y, delta) |
© ArabelaTso, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (references) in skills/unit-test-generator of ArabelaTso/Skills-4-SE.
Open the folder on GitHubat commit 4f38503
Unit Test Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Unit Test Generator this skillArabelaTso/Skills-4-SE | 253 | — | ~2.9k | Automated safety check: Pass | Apache-2.0 | |
| Test Analysis Extensionsmicrosoft/testfx | 1k | 2 repos | ~1.1k | Automated safety check: Pass | MIT | |
| TDD GuideLeoYeAI/openclaw-master-skills | 2.2k | — | ~1.4k | Automated safety check: Pass | MIT | |
| TDD Guidealirezarezvani/claude-skills | 28k | — | ~3.4k | Automated safety check: Pass | MIT | |
| Assertion Qualitymicrosoft/testfx | 1k | — | ~4.1k | Automated safety check: Pass | MIT | |
| Test Gap Analysismicrosoft/testfx | 1k | — | ~4k | Automated safety check: Pass | MIT |
microsoft/testfx
Provides file paths to language-specific reference files for the test ANALYSIS skills (assertion-quality, test-anti-patterns, test-gap-analysis, test-smell-detection, test-tagging).
LeoYeAI/openclaw-master-skills
Test-driven development skill for writing unit tests, generating test fixtures and mocks, analyzing coverage gaps, and guiding red-green-refactor workflows across Jest, Pytest, JUnit, Vitest, and…
alirezarezvani/claude-skills
Test-driven development skill for writing unit tests, generating test fixtures and mocks, analyzing coverage gaps, and guiding red-green-refactor workflows across Jest, Pytest, JUnit, Vitest, and…
microsoft/testfx
Analyzes the variety and depth of assertions across test suites in any language.
microsoft/testfx
Performs pseudo-mutation analysis on production code in any language to find gaps in existing test suites.
microsoft/testfx
Deep-dive audit using the full testsmells.org 19-smell academic catalog for tests in any language.
ArabelaTso/Skills-4-SE
Generate prioritized CVE watchlists and actionable security recommendations for repositories.
ArabelaTso/Skills-4-SE
Automatically migrate Python web applications between frameworks (Flask → FastAPI, Django → FastAPI).
ArabelaTso/Skills-4-SE
Generate test cases using metamorphic testing by applying transformations based on metamorphic properties.
ArabelaTso/Skills-4-SE
Instruments programs to capture execution traces specifically for reproducing reported bugs, enabling consistent replay and diagnosis of failures.
ArabelaTso/Skills-4-SE
Automatically migrate Spring MVC applications to Spring Boot.
ArabelaTso/Skills-4-SE
Instrument programs (Python, C/C++, Java) to capture snapshots of key program states at runtime, including variables, memory, and call stacks.
Categories
Automatically generates comprehensive unit tests for functions, classes, and modules. Unit Test Generator is an agent skill from ArabelaTso/Skills-4-SE. Automatically generates comprehensive unit tests for functions, classes, and modules.
Unit Test Generator fits situations like: you need to create tests for Python (pytest; tasks that involve Unit testing.
Run `npx skills add ArabelaTso/Skills-4-SE --skill unit-test-generator -a claude-code`. Or copy the skill folder (skills/unit-test-generator in ArabelaTso/Skills-4-SE) into .claude/skills/unit-test-generator in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ArabelaTso/Skills-4-SE --skill unit-test-generator -a codex`. Or copy the skill folder (skills/unit-test-generator in ArabelaTso/Skills-4-SE) into .agents/skills/unit-test-generator in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ArabelaTso/Skills-4-SE --skill unit-test-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/unit-test-generator, .gemini/skills/unit-test-generator, .github/skills/unit-test-generator and .opencode/skills/unit-test-generator in your project.
SKILL.md names no scripts, command-line tools or credentials: Unit Test Generator is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Unit Test Generator is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.9k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 9.5k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Unit Test Generator: Test Analysis Extensions (microsoft/testfx, 1k stars), TDD Guide (LeoYeAI/openclaw-master-skills, 2.2k stars), TDD Guide (alirezarezvani/claude-skills, 28k stars) and Assertion Quality (microsoft/testfx, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ArabelaTso (a GitHub user) maintains it in ArabelaTso/Skills-4-SE, which has 253 GitHub stars. The repository holds 150 skills in this directory. The repository was last updated on August 21, 2026.
Source: ArabelaTso/Skills-4-SE on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.