Tests run twice if you change compiler version #1306
Labels
C-forge
Command: forge
Cmd-forge-build
Command: forge build
Cmd-forge-test
Command: forge test
T-bug
Type: bug
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (e85435a 2022-04-14T00:06:25.800261822+00:00)
What command(s) is the bug in?
forge test
Operating System
Linux
Describe the bug
Steps:
Run
forge init
Change the Solidity pragma version to
>=0.8.10
insrc/Contract.sol
andsrc/test/Contract.t.sol
Add
solc = "0.8.10"
tofoundry.toml
Run
forge test -vvvv
, you'll seeReplace the
solc
version infoundry.toml
bysolc = "0.8.13"
Run
forge test -vvvv
, you'll now seeSo it looks like the tests are running twice, I think once with each compiler version from the two mentioned above. Not sure if this behavior is intended, but I'd guess not.
The text was updated successfully, but these errors were encountered: