تخطَّ إلى المحتوى
أمرمستورد

add-property-based-testing

Implement property-based testing with framework selection and invariant identification

وصف مستورد لم يراجعه محرر بعد

جاء هذا العنصر من مستودعه الأصلي وفحصناه آلياً فقط، ولم يكتب له محرر وصفاً عربياً بعد. اقرأ محتواه بنفسك قبل أن تعتمد عليه. ولا تُفهرس هذه الصفحة في محركات البحث حتى تُراجَع.

التنزيل

الملفات: 1 · الحجم: 3.4 ك.ب

نزّل ملف ZIP

يحمل الملف ترخيص المصدر الأصلي.

التثبيت

بعد التنزيل، شغّل الأمر في الطرفية. يسأل unzip قبل أن يستبدل أي ملف موجود.

  • لهذا المشروع

    يوضع في: .claude/commands/

    mkdir -p .claude/commands && unzip ~/Downloads/add-property-based-testing.zip -d .claude/commands

  • لحسابك على الجهاز كله

    يوضع في: ~/.claude/commands/

    mkdir -p ~/.claude/commands && unzip ~/Downloads/add-property-based-testing.zip -d ~/.claude/commands

التعليمات

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.

الملفات

  • LICENSE1 ك.ب
  • add-property-based-testing.md2.4 ك.ب

ما وجده الفحص الآلي

فحصنا الملفات آلياً وقت الاستيراد. هذا ما نبّه إليه الفحص، ولا يعني أن العنصر ضار ولا أنه سليم: اقرأه بنفسك.

  • يحتاج مراجعةأدوات مسموحة بلا حدود

    في الملف cli-tool/components/commands/testing/add-property-based-testing.md

التعليقات (0)

لا تعليقات بعد. كن أول من يعلّق.

سجّل الدخول لتعلّق. التعليق من المستوى 1 (عضو).

أبلغ

عناصر مشابهة

  • أمرمستورد

    add-mutation-testing

    Setup comprehensive mutation testing with framework selection and CI integration

    MITالملفات: 1

  • أمرمستورد

    ai-review

    Run an AI-assisted code review that combines static analysis tools with AI review of security, performance, and architecture

    MITالملفات: 1

  • أمرمستورد

    code-permutation-tester

    Test multiple code variations through simulation before implementation with quality gates and performance prediction.

    MITالملفات: 1

  • أمرمستورد

    create-feature

    Scaffold new feature with boilerplate code, tests, and documentation

    MITالملفات: 1

  • أمرمستورد

    decision-quality-analyzer

    Analyze team decision quality with bias detection, scenario testing, and process improvement recommendations

    MITالملفات: 1

  • أمرمستورد

    digital-twin-creator

    Create calibrated digital twins with real-world validation, scenario testing, and decision optimization

    MITالملفات: 1