Giter VIP home page Giter VIP logo

Comments (4)

jacob-chia avatar jacob-chia commented on August 9, 2024

Please try the following steps:

  1. Make sure foundry is installed: https://book.getfoundry.sh/getting-started/installation
  2. cd tests/evm_manual/foundry1
  3. cargo run evm -m CounterTest -- forge build. The -- forge build indicates the use of forge build to compile solidity files before running ityfuzz.

from ityfuzz.

qianqianpang avatar qianqianpang commented on August 9, 2024

@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.

jacob-chia avatar jacob-chia commented on August 9, 2024
  1. cargo run = cargo build & ./target/debug/ityfuzz.
  2. "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 the Counter.t.sol file.
  3. -- 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.

from ityfuzz.

qianqianpang avatar qianqianpang commented on August 9, 2024

thank you very much!

from ityfuzz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.