huff-language / huff-project-template

Foundry Repository Template that supports writing contracts in Huff using the foundry-huff library.
The Unlicense
212 stars 45 forks source link

forge test fails with Reason: Setup failed: Failed to execute command: No such file or directory #8

Closed PatrickAlphaC closed 2 years ago

PatrickAlphaC commented 2 years ago

I ran these commands exactly:

git clone https://github.com/huff-language/huff-project-template
cd huff-project-template
forge install
forge build
forge test

Resulting error:

[⠆] Compiling...
No files changed, compilation skipped

Running 1 test for test/SimpleStore.t.sol:SimpleStoreTest
[FAIL. Reason: Setup failed: Failed to execute command: No such file or directory (os error 2)] setUp() (gas: 0)
Test result: FAILED. 0 passed; 1 failed; finished in 1.28s

Failed tests:
[FAIL. Reason: Setup failed: Failed to execute command: No such file or directory (os error 2)] setUp() (gas: 0)

Encountered a total of 1 failing tests, 0 tests succeeded

Environment: forge --version: forge 0.2.0 (01325bc 2022-08-03T00:08:52.682886Z) MacOS

Solution: Include notes to install huff compiler.