bug-reproduction-test-generator

Solid

Automatically generates executable tests that reproduce reported bugs from issue reports and code repositories. Use when users need to: (1) Create a test that reproduces a bug described in an issue report, (2) Generate failing tests from bug descriptions, stack traces, or error messages, (3) Validate bug reports by creating reproducible test cases, (4) Convert issue reports into executable regression tests. Takes a repository and issue report as input and produces test code that reliably triggers the reported bug.

Testing & QA 160 stars 17 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 87/100

Stars 20%
73
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Bug Reproduction Test Generator Generate executable tests that reproduce reported bugs based on issue reports and code repositories. ## Workflow Follow these steps to generate a bug reproduction test: ### 1. Analyze the Issue Report Extract key information from the issue report: - **Symptoms**: What goes wrong? (incorrect output, exception, crash, assertion failure, unexpected behavior) - **Affected components**: Which modules, classes, or functions are involved? - **Triggering conditions**: What inputs, states, or sequences trigger the bug? - **Stack traces**: If provided, identify the call chain and failure point - **Expected vs. actual behavior**: What should happen vs. what actually happens? ### 2. Inspect the Repository Identify relevant code and context: - Locate the affected components mentioned in the issue - Find entry points (public APIs, main functions, test fixtures) - Understand dependencies and required setup - Identify the test framework used (pytest, unittest, JUnit, Jest, etc.) - Check existing test patterns for consistency ### 3. Generate the Reproduction Test Create a minimal, focused test that: **Test structure:** - Uses the repository's existing test framework and conventions - Sets up minimal preconditions needed to trigger the bug - Executes the code path that triggers the bug - Asserts the symptom described in the issue report **Assertions:** - For exceptions: Assert the exception type and message match the report - For incorrect output:...

Details

Author
ArabelaTso
Repository
ArabelaTso/Skills-4-SE
Created
6 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category