bee:dev-property-testing

Automate domain invariant verification via property-based testing for PHP code.

2|1|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/luanrodrigues/ia-frmwrk --skill bee-dev-property-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bee:dev-property-testing
Source: https://github.com/luanrodrigues/ia-frmwrk/tree/main/dev-team/skills/dev-property-testing
Command: npx skills add https://github.com/luanrodrigues/ia-frmwrk --skill bee-dev-property-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that your application's core logic adheres to fundamental rules (invariants) across all possible inputs, preventing subtle bugs that traditional unit tests might miss.

Core Features & Use Cases

  • Invariant Verification: Automatically checks if defined domain invariants hold true for randomly generated data.
  • Automated Test Generation: Orchestrates the creation and execution of property-based tests using Pest datasets or PHPUnit data providers.
  • Use Case: After implementing a financial transaction module, use this Skill to verify that the balance never becomes negative, regardless of the sequence or magnitude of deposits and withdrawals.

Quick Start

Use the bee:dev-property-testing skill to verify domain invariants for the provided implementation files.

Frequently Asked Questions about bee:dev-property-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify domain invariants in PHP using property testing?

Property testing verifies domain invariants by checking fundamental rules against randomly generated inputs. This Skill automates generating and executing these tests using Pest datasets or PHPUnit data providers to catch subtle bugs traditional unit tests miss.

When do I need property tests instead of traditional unit tests for PHP?

You need property tests when verifying that core domain rules hold true for any possible input value. Unlike traditional unit tests that check specific scenarios, property testing validates fundamental invariants against randomly generated data to prevent edge-case failures.

Does property testing work with both Pest and PHPUnit data providers?

Yes, property testing works with both Pest and PHPUnit. The Skill orchestrates automated test generation and execution by leveraging Pest datasets or PHPUnit data providers to feed randomly generated inputs into your invariant verification logic.

How do I test that a financial transaction balance never becomes negative in PHP?

To test that a balance never becomes negative, define the invariant and use property testing to generate random sequences of deposits and withdrawals. The Skill automates verifying this domain rule holds true regardless of the transaction magnitude or order.

What are the limitations of property testing for domain invariants?

Property testing for domain invariants requires explicitly identifying the fundamental rules of your domain logic beforehand. It complements but does not replace traditional unit tests, focusing on validating general properties rather than specific expected outcomes for defined scenarios.