π οΈFuzzing Foundry Projects
Our CLI now supports Foundry projects!
Last updated
echo FUZZ_API_KEY='your api key here' > .envfuzz forge testUsage: fuzz forge test [OPTIONS]
Command to: * Compile unit tests * Automatically collect unit-test
contracts * Submit to fuzzing
Options:
-k, --key TEXT API key, can be created on the FaaS Dashboard.
--dry-run Outputs the data to be sent to the FaaS API without
making the request.
--match-contract TEXT Only run tests in contracts matching the specified
regex pattern
--match-path TEXT Only run tests in source files matching the specified
glob pattern
--build-args TEXT Additional string of `forge compile` command
arguments for custom build strategies (e.g. --build-
args=--deny-warnings --build-args --use 0.8.1)
--help Show this message and exit. function roll(uint256 number) external;
function warp(uint256 timestamp) external;
function deal(address addr, uint256 balance) external;
function load(address c, bytes32 loc) external returns (bytes32 val);
function store(address c, bytes32 loc, bytes32 val) external;
function prank(address addr) external;
function startPrank(address addr) external;
function prank(address addr, address origin) external;
function startPrank(address addr, address origin) external;
function stopPrank() external;
function assume(bool cond) external;
function addr(uint256 sk) external returns (address addr);
function sign(uint256 sk, bytes32 digest) external returns (uint8 v, bytes32 r, bytes32 s);
function expectRevert() external;
function expectRevert(bytes calldata message) external;
function expectRevert(bytes4 message) external;