RareSkills / vertigo-rs

Mutation Testing for Ethereum Smart Contracts, support for Foundry
GNU Lesser General Public License v3.0
115 stars 13 forks source link

The --src-dir option does not work #10

Open marchev opened 1 year ago

marchev commented 1 year ago

Description:

It seems the --src-dir does not affect the execution and the command is still searching for contracts in the src/ directory.

Steps to reproduce:

  1. Navigate to a project which uses a contracts/ folder instead of src/ to hold its smart contracts
  2. Run the following command:
    python3 ~/projects/vertigo-rs/vertigo.py run --src-dir ./contracts

Expected result: The command should run successfully.

Actual result: The command fails with the following error:

❯ python3 ~/projects/vertigo-rs/vertigo.py run --src-dir ./contracts
[*] Starting mutation testing
[*] Starting analysis on project
[+] Foundry project detected
[+] If this is taking a while, vertigo-rs is probably installing dependencies in your project
[*] Initializing campaign run
[*] Checking validity of project
[+] The project is valid
[*] Storing compilation results
[-] Encountered an error while running the core campaign
[Errno 2] No such file or directory: '/Users/marchev/projects/sherlock/allo_v2_clean/allo-v2/src'
nicobevilacqua commented 11 months ago

same issue here

nicobevilacqua commented 11 months ago

I've created a PR with a fix 14

Atharv181 commented 5 months ago

@RareSkills can you please look into this facing similar problem.