Home / Market / add property based testing

add property based testing

add-property-based-testing

claude-command★ 346920 dlgithubMITInstall in CosmosUpstream Source

Documentation & Preview

--- allowed-tools: Read, Write, Edit, Bash argument-hint: [language] | --javascript | --python | --java | --haskell | --rust | --clojure description: Implement property-based testing with framework selection and invariant identification

---

Add Property-Based Testing

Implement property-based testing framework with invariant analysis and test generation: $ARGUMENTS

Current Testing Context

Task

Implement comprehensive property-based testing with invariant analysis and automated test generation:

Language Focus: Use $ARGUMENTS to specify JavaScript, Python, Java, Haskell, Rust, Clojure, or auto-detect from codebase

Property-Based Testing Framework:

  1. Framework Selection - Choose appropriate tool (fast-check, Hypothesis, QuickCheck, proptest), install dependencies, configure integration
  2. Property Identification - Analyze mathematical properties, identify business invariants, discover symmetries, evaluate round-trip properties
  3. Generator Design - Create custom data generators, implement constraint-based generation, design composite generators, optimize generation strategies
  4. Property Implementation - Write property tests, implement preconditions, design postconditions, create invariant checks
  5. Shrinking Configuration - Configure test case shrinking, optimize failure minimization, implement custom shrinkers, enhance debugging
  6. Integration & Reporting - Integrate with existing test suite, configure reporting, setup CI integration, optimize execution performance

Advanced Features: Stateful property testing, model-based testing, custom generators, parallel property execution, performance property testing.

Quality Assurance: Property completeness analysis, edge case coverage, performance optimization, maintainability assessment.

Output: Complete property-based testing setup with identified properties, custom generators, integrated test suite, and performance optimization.