Comments (4)
Please try the following steps:
- Make sure foundry is installed: https://book.getfoundry.sh/getting-started/installation
cd tests/evm_manual/foundry1
cargo run evm -m CounterTest -- forge build
. The-- forge build
indicates the use offorge build
to compile solidity files before running ityfuzz.
from 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
from ityfuzz.
cargo run
=cargo build
&./target/debug/ityfuzz
.- "CounterTest" is the name of the test contract.
-m CounterTest
will match CounterTest in all files in the current directory, while-m Counter.t.sol:CounterTest
will only match in theCounter.t.sol
file. -- forge test
is the build command。Bothforge build
andforge test
will build, butforge test
not only builds but also tests afterwards, which is redundant. Moreover, some test cases can only be executed through ityfuzz, andforge test
would fail. Therefore,-- forge build
is the correct build command.
from ityfuzz.
thank you very much!
from ityfuzz.
Related Issues (20)
- bug: release workflow failed
- bug: release workflow failed
- bug: release workflow failed
- Can't find USDC/WETH pair HOT 1
- bug: CMP_MAP polluted by contract setup deployer
- Targeted Fuzzing HOT 2
- Mutator selection prioritization HOT 2
- New code insertion is inconsistent with middlewares HOT 3
- libssl.so.1.1: cannot open shared object file what should i do HOT 4
- openssl dynamic lib not found HOT 1
- Testing invariants on chain HOT 1
- Continuous execution to find other methods of triggering bugs. HOT 1
- bug: release workflow failed
- CTF challenge from docs is broken HOT 1
- Publishing to crates.io HOT 2
- offchain evm fuzzing fails HOT 1
- Compilation error on rust-nightly `type annotations needed for Box<_>` HOT 2
- error[E0308] [E0053] [E0277] HOT 1
- how to add other chain url api HOT 1
- bug: release workflow failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ityfuzz.