argotorg / argotorg/hevm

feat: document/support Foundry-compatible `--match` options

Open
#254 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Haskell
Stars
358
Forks
79
Avg merge
1d 1h
Merged PRs (30d)
6

Description

(1) `--match` flag used in `hevm test` to analyze individual tests and/or test contracts is only documented [in the dapptools repo](https://github.com/dapphub/dapptools/blob/master/src/dapp/README.md#dapp-test).

(2) Foundry supports several variations of this option that restrict the analysis to test functions that are
`-match-test` --- matching the regex,
`--no-match-test` --- *not* matching the regex,
`--match-contract`--- specified in contracts matching the regex,
`--no-match-contract`--- specified in contracts *not* matching the regex,
`--match-path ` --- located in source files matching the glob pattern,
`--no-match-path ` --- located in source files *not* matching the glob pattern;

while `--match` (similar to the one supported by hevm) is deprecated. It might be nice to have a similar set of options to make symbolic testing of Foundry projects slighly easier.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the hevm test command and the linked dapptools README section documenting --match. Compare the requested Foundry-compatible options with the existing command behavior, then determine whether the intended scope is documentation, CLI support, or both. Done means the supported option set and its matching or exclusion behavior are documented and covered by the relevant test workflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
cli, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.