Back to skills

property-based-testing

testing

Guides property-based testing across Python, JavaScript, Rust, and Solidity/Vyper. Detects high-value patterns like serialization pairs, normalizers, and smart contract state invariants, then suggests

Setup & Installation

npx skills add https://github.com/trailofbits/property-based-testing --skill property-based-testing
or paste the link and ask your coding assistant to install it
https://github.com/trailofbits/property-based-testing
View on GitHub

What This Skill Does

Guides property-based testing across Python, JavaScript, Rust, and Solidity/Vyper. Detects high-value patterns like serialization pairs, normalizers, and smart contract state invariants, then suggests appropriate properties and generators. Covers the full workflow from test design to failure interpretation. Instead of manually crafting edge-case examples that still miss float boundary bugs or malformed UTF-8 inputs, this skill identifies which properties apply to your code and generates the test structure automatically.

When to use it

  • Working with property based testing functionality
  • Implementing property based testing features
  • Debugging property based testing related issues