property-testing-guide
Design Rust Property Tests with Proptest
Property-based testing can be hard to apply because useful properties and generators are not always obvious. This skill helps Claude, Codex, or Claude Code propose targeted proptest strategies for Rust code.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "property-testing-guide" from https://skillstore.io/skills/emillindfors-property-testing-guide.md and its manifest at https://skillstore.io/api/skills/emillindfors-property-testing-guide/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "property-testing-guide". A Rust parser accepts names and ages from a comma-separated string.
Expected outcome:
The assistant proposes properties for no panics, valid generated records, rejected malformed input, and roundtrip formatting checks.
Using "property-testing-guide". A custom sort implementation returns reordered integer vectors.
Expected outcome:
The assistant suggests checking sorted order, preserved length, preserved elements, idempotence, and comparison with the standard sort.
Using "property-testing-guide". A B-tree supports insert and remove operations.
Expected outcome:
The assistant recommends generated operation sequences that verify balance, ordering, lookup behavior, and consistency after each mutation.
Security Audit
SafeAll static findings are false positives from Markdown code fences, Rust examples, TOML dependency text, and ordinary proptest comments. No prompt injection, malicious intent, command execution, data exfiltration, or system reconnaissance was found in SKILL.md.
Risk Factors
⚙️ External commands (27)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/emillindfors-property-testing-guide/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/emillindfors-property-testing-guide?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/emillindfors-property-testing-guide?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/emillindfors-property-testing-guide/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/emillindfors-property-testing-guide.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA · BibTeX · CFF)
APA citation
EmilLindfors. (2026). property-testing-guide security audit report (audit version 4) [Author version 1.0.0]. Skillstore. https://skillstore.io/skills/emillindfors-property-testing-guide/audits/4BibTeX citation
@techreport{emillindfors-emillindfors-property-testing-guide-2026,
author = {EmilLindfors},
title = {property-testing-guide security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/emillindfors-property-testing-guide/audits/4},
note = {Author version 1.0.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "property-testing-guide security audit report (audit version 4)"
version: "1.0.0"
type: report
authors:
- name: "EmilLindfors"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/emillindfors-property-testing-guide/audits/4"
identifiers:
- type: other
value: "skillstore:emillindfors-property-testing-guide:audit:4"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Test Algorithm Implementations
Create properties for sorting, encoding, parsing, or numeric functions that must behave correctly across many inputs.
Validate Data Structures
Define generated operation sequences that check ordering, balance, and consistency after every mutation.
Improve Review Coverage
Ask an assistant to suggest missing property tests before merging complex Rust logic.
Try These Prompts
Review this Rust function and suggest simple proptest properties that should always hold. Focus on edge cases and clear assertions.
Design property-based tests for this Rust roundtrip path. Include suitable input strategies and explain what each property proves.
Suggest proptest operation sequences for this data structure. Check invariants after each operation and note important generated cases.
Compare this optimized Rust algorithm against a trusted reference implementation using proptest. Propose strategies, invariants, and failure triage steps.
Best Practices
- Start with properties that describe observable behavior, not implementation details.
- Use constrained strategies when generated values must satisfy domain rules.
- Keep failing cases small and readable so shrinking results are easy to debug.
Avoid
- Generating only trivial values that never exercise boundary conditions.
- Replacing all example-based tests with broad properties that hide specific requirements.
- Writing properties that duplicate the same flawed logic as the implementation under test.
Frequently Asked Questions
What does this skill help me do?
Does it run my tests?
Which Rust testing crate does it target?
Can it help with parser testing?
Is it useful for data structures?
What should I provide for best results?
Developer Details
Author
EmilLindforsLicense
MIT
Author version
v1.0.0
Skillstore revision
r1
Ref
a06681402992ceae98ba04d54cfd4ab004862696
Maintenance freshness
7/18/2026
Usage
4 downloads · 169 views
File structure
📄 SKILL.md