# Regex Pattern Test Suite Generator

> Generates comprehensive test suites for regular expressions using Hypothesis property-based testing and re2 for safe evaluation. Creates positive/negative test cases, edge cases, and ReDoS vulnerability checks.

- Skill: `agentskillexchange/regex-pattern-test-suite-generator` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/regex-pattern-test-suite-generator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/regex-pattern-test-suite-generator/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/regex-pattern-test-suite-generator

---


# Regex Pattern Test Suite Generator

Generates comprehensive test suites for regular expressions using Hypothesis property-based testing and re2 for safe evaluation. Creates positive/negative test cases, edge cases, and ReDoS vulnerability checks.

## Installation

Use the upstream install or setup path that matches your environment:
- pip install hypothesis

Requirements and caveats from upstream:
- Hypothesis is the property-based testing library for Python. With Hypothesis, you write tests which should pass for all inputs in whatever range you describe, and let Hypothesis randomly choose which of those inputs t...
- python

Basic usage or getting-started notes:
- This randomized testing can catch bugs and edge cases that you didn't think of and wouldn't have found. In addition, when Hypothesis does find a bug, it doesn't just report any failing example — it reports the simples...
- fails with the simplest possible failing example:
- Falsifying example: test_matches_builtin(ls=[0, 0])

- Source: https://github.com/HypothesisWorks/hypothesis
- Extracted from upstream docs: https://raw.githubusercontent.com/HypothesisWorks/hypothesis/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/regex-pattern-test-suite-generator/)

