foundry-huff icon indicating copy to clipboard operation
foundry-huff copied to clipboard

forge test -w freaks out with tests that use HuffDeployer

Open devtooligan opened this issue 3 years ago • 1 comments

Screen Shot 2022-08-03 at 1 14 58 AM

devtooligan avatar Aug 03 '22 08:08 devtooligan

+1

Additionally, if you use HuffConfig, foundry will stop being able to recognize tests.

ie: If I run:

forge test -m testSolveHuff

And my test looks like:

function testSolveHuff() public {
  HuffConfig hConfig = HuffDeployer.config();
}

You'll get:

No tests match the provided pattern:
        match: `testSolveHuff`

PatrickAlphaC avatar Apr 12 '23 19:04 PatrickAlphaC