Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path_pattern_inverse in foundry.toml doesn't work #1187

Open
2 tasks done
pcaversaccio opened this issue Apr 22, 2024 · 2 comments
Open
2 tasks done

path_pattern_inverse in foundry.toml doesn't work #1187

pcaversaccio opened this issue Apr 22, 2024 · 2 comments
Labels
T-bug Type: bug in docs

Comments

@pcaversaccio
Copy link
Contributor

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (63fff35 2024-04-22T00:18:27.941506275Z)

What command(s) is the bug in?

forge test

Operating System

Linux

Describe the bug

path_pattern_inverse in foundry.toml doesn't work.

PoC

Add the following to an existing foundry.toml file and invoke forge test:

path_pattern_inverse = '**/*' 

All tests will be invoked. The cli arg --no-match-path works however.

@pcaversaccio pcaversaccio added the T-bug Type: bug in docs label Apr 22, 2024
@klkvr
Copy link
Member

klkvr commented Apr 22, 2024

You should use no_match_path key in foundry.toml for this

@pcaversaccio
Copy link
Contributor Author

Hmm, I see. I looked it up in the docs and it seems that section is outdated wrt the default config file: https://book.getfoundry.sh/reference/config/overview#configuration-format. So it would be worth updating that file at least.

@DaniPopes DaniPopes transferred this issue from foundry-rs/foundry Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug in docs
Projects
Status: Todo
Development

No branches or pull requests

2 participants