forge-std icon indicating copy to clipboard operation
forge-std copied to clipboard

Recap V1 ideas & standards

Open ZeroEkkusu opened this issue 3 years ago • 1 comments

We need to revisit #126 to recap the ideas and standards we came up with. I think those are the best features of V1! For example, users can now have custom Test.sol and Script.sol tailored to the needs of their project.

No hurry - whenever you find time. Cc @paulrberg @mds1

Unrelated to this issue: This should be communicated on Twitter, in the README, and in Foundry Book.

ZeroEkkusu avatar Nov 01 '22 20:11 ZeroEkkusu

I agree that this should be communicated on all relevant channels.

A good example of a project which has greatly benefited from the modularization of forge-std introduced in V1 is my foundry-template, since I am now able to selectively import the StdCheats and use that alongside PRBTest rather than DSTest:

import { PRBTest } from "@prb/test/PRBTest.sol";
import { StdCheats } from "forge-std/StdCheats.sol";

contract ContractTest is PRBTest, StdCheats {
    // ...
}

PaulRBerg avatar Nov 06 '22 10:11 PaulRBerg