Skip to content

Conversation

@grandizzy
Copy link
Collaborator

Motivation

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@grandizzy grandizzy marked this pull request as ready for review August 18, 2025 10:55
zerosnacks
zerosnacks previously approved these changes Aug 18, 2025
Copy link
Member

@zerosnacks zerosnacks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense 👍

yash-atreya
yash-atreya previously approved these changes Aug 18, 2025
Copy link
Contributor

@yash-atreya yash-atreya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Copy link
Member

@DaniPopes DaniPopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, nits


/// Runs all tests for a contract whose names match the provided regular expression
pub fn run_tests(mut self, filter: &dyn TestFilter) -> SuiteResult {
pub fn run_tests(mut self, filter: &dyn TestFilter, fail_fast: &FailFast) -> SuiteResult {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we set this in self? it can also be cloned just fine

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set in 9d61091

filter: &dyn TestFilter,
tx: mpsc::Sender<(String, SuiteResult)>,
show_progress: bool,
fail_fast: bool,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set in self / tcfg instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set in 9d61091

@grandizzy grandizzy self-assigned this Aug 18, 2025
@grandizzy grandizzy moved this to Ready For Review in Foundry Aug 18, 2025
Copy link
Member

@DaniPopes DaniPopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@grandizzy grandizzy merged commit 5e3e557 into foundry-rs:master Aug 18, 2025
22 checks passed
@grandizzy grandizzy deleted the issue-6529 branch August 18, 2025 15:32
@github-project-automation github-project-automation bot moved this from Ready For Review to Done in Foundry Aug 18, 2025
@grandizzy grandizzy added this to the v1.4.0 milestone Aug 25, 2025
@grandizzy grandizzy moved this from Done to Completed in Foundry Aug 25, 2025
MerkleBoy pushed a commit to MerkleBoy/foundry that referenced this pull request Sep 17, 2025
* fix(forge): enable fail fast flag

* Cleanup after review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Completed

Development

Successfully merging this pull request may close these issues.

bug(forge test): --fail-fast flag does not work as it is not applied across multiple test suites

4 participants