property-based-testing

Generate property-based tests across Python, JavaScript, Rust, and Echidna.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/keremtoker468-dotcom/restoran --skill property-based-testing-keremtoker468-dotcom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: property-based-testing
Source: https://github.com/keremtoker468-dotcom/restoran/tree/main/.claude/skills/property-based-testing
Command: npx skills add https://github.com/keremtoker468-dotcom/restoran --skill property-based-testing-keremtoker468-dotcom

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps developers write more robust and reliable code by leveraging property-based testing (PBT), which finds edge cases that traditional example-based tests often miss.

Core Features & Use Cases

  • Test Generation: Automatically generates property-based tests for various languages and smart contracts.
  • Code Review: Identifies issues in existing PBT tests, like weak properties or over-filtering.
  • Design Assistance: Guides users in designing features using a property-driven approach before implementation.
  • Use Case: You've written a complex serialization function. Use this Skill to generate property-based tests that ensure the decode(encode(x)) == x roundtrip property holds for a wide range of inputs, catching subtle bugs.

Quick Start

Use the property-based-testing skill to write property-based tests for the provided Python serialization code.

Frequently Asked Questions about property-based-testing

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

FAQPage Schema
How do I write property-based tests to find edge cases in my serialization code?

To write property-based tests for serialization code, you define properties like a roundtrip invariant where `decode(encode(x)) == x` holds true. This approach automatically generates diverse inputs to catch subtle bugs that traditional example-based tests often miss.

Can I generate property-based tests for smart contracts using Echidna?

Yes, you can generate property-based tests for smart contracts using tools like Echidna. The testing framework detects property-based testing opportunities and generates appropriate test strategies to ensure your smart contract logic holds across a wide range of inputs.

What is the best way to review existing property-based tests for weak properties?

The best way to review existing property-based tests is to analyze them for weak properties and over-filtering. This code review process identifies ineffective strategies, ensuring your tests actually validate robust code behavior rather than passing trivially.

Does property-based testing work with Python, JavaScript, and Rust?

Yes, property-based testing works across multiple languages including Python, JavaScript, and Rust. It supports popular libraries like Hypothesis and fast-check to generate tests with appropriate strategies and properties for your specific development environment.

How do I design features using a property-driven approach before implementation?

To design features using a property-driven approach, you define the invariant properties and expected behaviors of your feature before writing implementation code. This design assistance guides you in establishing robust test strategies upfront to catch edge cases early.