crytic / crytic/properties

[Feature-request]: foundry-compatible assertion helpers

Open
#42 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Solidity
Stars
371
Forks
59
PR merge metrics
No merged PRs in 30d

Description

### Describe the desired feature or improvement

When integrating https://github.com/crytic/properties with an existing foundry codebase, many assertion helpers collide with `forge-std/Test.sol`, which makes it harder to use both helpers on the same set of contracts.

For example, this repo's `assertWithMsg` from this repo serves the same purpose as foundry's `assertTrue`, so they could have the same name. Also, one uses `assertGte` while the other uses `assertGe`, etc.

It would be nice if this repo was fully compatible with foundry for an easier integration.

Contributor guide

Open the contributing guide

Research direction

Start by comparing this repository's assertion helpers with forge-std/Test.sol, focusing on the reported assertWithMsg/assertTrue and assertGte/assertGe collisions. Identify the full set of conflicting helper names and define compatibility expectations before changing anything; done means both helper sets can be used together without name collisions.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.