Skip to content

Test Foundry methods independently - #1088

Merged
gustavo-grieco merged 1 commit into
mainfrom
fix/assert-test-result-wiring
Sep 7, 2026
Merged

Test Foundry methods independently#1088
gustavo-grieco merged 1 commit into
mainfrom
fix/assert-test-result-wiring

Conversation

@elopez

@elopez elopez commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Description

runForgeTest combines per-method outcomes with and. This is suitable for suite-level CLI reporting, but too weak for tests that expect every selected method to have a specific result. An aggregate False only proves that at least one method failed, while an empty selection yields (True, True).

Expose raw unit-test results to test helpers and assert non-empty, per-method outcomes for homogeneous regex and prefix selections. Use exact-name, single-result checks for individual and custom-option tests so similarly prefixed methods cannot affect results. Keep aggregate reduction only for the mixed-warning suite where it is intentional.

Checklist

  • tested locally
  • added automated tests
  • updated the docs
  • updated the changelog

runForgeTest combines per-method outcomes with and. This is suitable for
suite-level CLI reporting, but too weak for tests that expect every
selected method to have a specific result. An aggregate False only proves
that at least one method failed, while an empty selection yields
(True, True).

Expose raw unit-test results to test helpers and assert non-empty,
per-method outcomes for homogeneous regex and prefix selections. Use
exact-name, single-result checks for individual and custom-option tests so
similarly prefixed methods cannot affect results. Keep aggregate reduction
only for the mixed-warning suite where it is intentional.
@msooseth
msooseth marked this pull request as ready for review September 7, 2026 09:05

@msooseth msooseth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. Let's merge if you are happy with this!

@gustavo-grieco
gustavo-grieco merged commit 0c1f911 into main Sep 7, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants