/add-property-based-testing · Comandos slash para Claude Code | Prompt Studio
    1. Claude Code
    2. Comandos slash
    3. /add-property-based-testing
    Claude Code · Comandos slashTesting

    /add-property-based-testing

    Agrega pruebas basadas en propiedades.

    por davila7/claude-code-templates

    property-based

    Licencia: MITVer original

    Instalación

    npx claude-code-templates@latest --command testing/add-property-based-testing

    Contenido

    Dónde va: .claude/commands/add-property-based-testing.md

    ---
    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
    
    - Language: !`find . -name "*.js" -o -name "*.ts" | head -1 >/dev/null && echo "JavaScript/TypeScript" || find . -name "*.py" | head -1 >/dev/null && echo "Python" || echo "Multi-language"`
    - Test framework: !`find . -name "jest.config.*" -o -name "pytest.ini" | head -1 || echo "Detect framework"`
    - Mathematical functions: Analysis of codebase for property-testable functions
    - Business logic: Identification of invariants and properties in domain logic
    
    ## 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.
    

    Más en Comandos slash

    • /commit

      Redacta un commit con Conventional Commits a partir de los cambios en stage.

    • /review

      Revisa el diff actual buscando bugs, casos borde y problemas de seguridad.

    • /tests

      Escribe tests para el archivo o función que indiques.

    • /changelog

      Genera las notas de versión desde el último tag.

    • /explain

      Explica cómo funciona un archivo o módulo, con un diagrama del flujo.

    • /cleanup

      Elimina imports, variables y código muerto sin cambiar el comportamiento.

    Ver todo en Comandos slash (717) →

    Tu colección definitiva de prompts de IA. Inspírate, explora ejemplos y crea con IA.

    Hubs principales

    • Prompts
    • Imágenes
    • Videos
    • Generar Videos
    • Plantillas
    • Animaciones
    • Precios
    • Conoce
    • Afiliado

    Explorar por tipo

    • Kits de componentes
    • Etiquetas de imagen
    • Etiquetas de video
    • Webs

    Temas populares

    • Música
    • Portafolio
    • Gaming
    • Viajes
    • Nano Banana Pro

    Legal

    • Términos de uso
    • Política de privacidad
    • Política de cookies
    • Política de licencias
    • Política de reembolsos
    • Términos del programa de afiliados
    • Términos de Crowdfunding

    Magzin LLC, 800 Third Avenue Associates, New York, NY, 10022, United States

    © 2026 Prompt Studio by Magzin. Todos los derechos reservados.