Closed qianqianpang closed 3 months ago
Please try the following steps:
cd tests/evm_manual/foundry1
cargo run evm -m CounterTest -- forge build
. The -- forge build
indicates the use of forge build
to compile solidity files before running ityfuzz.@jacob-chia Could you please clarify the difference between these two commands? I often see them in issues, but I'm a bit confused: 1)cargo run evm -m CounterTest and -- forge test 2)ityfuzz evm -m Counter.t.sol:CounterTest -- forge test
cargo run
= cargo build
& ./target/debug/ityfuzz
. -m CounterTest
will match CounterTest in all files in the current directory, while -m Counter.t.sol:CounterTest
will only match in the Counter.t.sol
file.-- forge test
is the build command。Both forge build
and forge test
will build, but forge test
not only builds but also tests afterwards, which is redundant. Moreover, some test cases can only be executed through ityfuzz, and forge test
would fail. Therefore, -- forge build
is the correct build command.thank you very much!
Hello, I'm experiencing an issue with ityfuzz.
When testing the
CounterTest
contract located attests/evm_manual/foundry1/test/Counter.t.sol
, I encountered the error "ParserError: Source './Pranker.sol' not found: File not found." It seems that the filePranker.sol
is missing from the project.Could you please provide it to me? Thank you very much for your assistance!