gen-tests

Generates Python and Java test scaffolding for modules, functions, or free descriptions in a `tests/` directory.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/fppfurtado/pragmatic-dev-toolkit --skill gen-tests-fppfurtado
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gen-tests
Source: https://github.com/fppfurtado/pragmatic-dev-toolkit/tree/main/skills/gen-tests
Command: npx skills add https://github.com/fppfurtado/pragmatic-dev-toolkit --skill gen-tests-fppfurtado

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Gera esboços de teste para módulo, função ou descrição livre, usando idioms da stack do projeto consumidor (Python e Java suportadas). Use quando o operador pedir testes.

Core Features & Use Cases

  • Scaffolds Python e Java tests automatically, detectando a stack do projeto a partir de markers e despachando para o sub-bloco correspondente.
  • Gera estruturas de teste em tests/ sem realizar commit automático, deixando a decisão final ao operador.
  • Suporta padrões de unit e integration tests conforme a stack detectada.

Quick Start

Diga qual é o alvo do teste (módulo, função ou descrição livre) e gen-tests criará os esboços de teste correspondentes sem realizar commit.

Frequently Asked Questions about gen-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate unit and integration test scaffolding for Python and Java?

You can generate test scaffolding by specifying a target module, function, or freeform description. The tool detects your project stack using markers like pyproject.toml or pom.xml and creates appropriate unit and integration test files.

How does automatic test scaffolding detect whether to use Python or Java patterns?

Automatic test scaffolding detects the stack by searching for project markers such as pyproject.toml for Python or pom.xml for Java. Once identified, it dispatches to the corresponding language block to generate idiomatic test structures.

Can I generate test files for a specific function without triggering an automatic commit?

Yes, generated test files are placed under the tests/ directory without performing an automatic commit. The tool leaves the final decision to commit changes entirely to the operator.

What is the best way to scaffold tests for a freeform description across different stacks?

The best way to scaffold tests from a freeform description is to pass the description to the generator. It parses the target, maps invariants, and writes stack-appropriate test files under tests/ without committing.

Does this test generation tool support both unit and integration test patterns?

Yes, the test generation tool supports both unit and integration test patterns. It applies stack-appropriate idioms based on the detected Python or Java environment to structure the generated test files.