Open
Description
Component
Forge
Have you ensured that all of these are up to date?
- Foundry
- Foundryup
What version of Foundry are you on?
forge 0.2.0 (13af418 2023-12-05T00:21:30.568484000Z)
What command(s) is the bug in?
forge test --fail-fast
Operating System
None
Describe the bug
Running FOUNDRY_FUZZ_RUNS=100000 forge test --fail-fast
on the below code should run test_Increment
and testFuzz_SetNumber
in parallel, and fail test_Increment
should fail immediately. However, forge test
does not fail and exit until all 100,000 fuzz runs complete
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import {Test, console2} from "forge-std/Test.sol";
import {Counter} from "../src/Counter.sol";
contract CounterTest is Test {
Counter public counter;
function setUp() public {
counter = new Counter();
counter.setNumber(0);
}
function test_Increment() public {
assertTrue(false);
}
function testFuzz_SetNumber(uint256 x) public {
counter.setNumber(x);
assertEq(counter.number(), x);
}
}
Metadata
Metadata
Assignees
Type
Projects
Status
Todo