Repository navigation
feat: add python-property-based-testing skill - #4
Merged
Merged
Conversation
|
Sorry @azaharizaman, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 5 days and 9 hours by commenting |
Reviewer's GuideAdds and integrates an independently installable Python property-based-testing skill centered on Hypothesis strategies, independent oracles, shrinking, deterministic replay, and honest evidence, with a safe stdlib planner, comprehensive evaluation fixtures, repository contracts, documentation, catalog registration, and CI validation. Sequence diagram for deterministic property planning and replaysequenceDiagram
participant User
participant Planner as plan_property_matrix.py
participant Test as Deterministic tests
participant Runner as Project-native runner
participant Report as Evidence report
User->>Planner: Provide JSON target, properties, dimensions, and max_cases
Planner-->>User: Return bounded matrix and strategy_sketches
Test->>Planner: Repeat the same payload
Planner-->>Test: Return deterministic JSON plan
Runner->>Runner: Execute generated property witnesses
Runner-->>Report: Record seed, settings, counts, and exit status
Runner-->>Report: Record minimized failure and replay command
Flow diagram for the Hypothesis-led property testing workflowflowchart TD
Scope["Define quantified property and independent oracle"] --> Domain["Separate valid, invalid, unsupported, and environment domains"]
Domain --> Strategy["Design bounded strategies and assume budgets"]
Strategy --> Generate["Generate deterministic witnesses"]
Generate --> Run["Run with project-native runner"]
Run --> Failure{"Failure found?"}
Failure -->|yes| Shrink["Shrink and minimize counterexample"]
Shrink --> Replay["Replay with seed and settings"]
Replay --> Evidence["Record evidence, limitations, and coverage gaps"]
Failure -->|no| Evidence
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test Plan
Summary by Sourcery
Add an independently installable Python property-based testing skill with Hypothesis guidance, deterministic planning, evidence requirements, and repository-wide integration.
New Features:
python-property-based-testingskill for quantified Hypothesis-led properties, oracle design, strategy planning, shrinking, and reproducible replay.Enhancements:
CI:
Documentation:
Tests: