Skip to content

retest: add a failfast keyword; failfast=false keeps dispatching after a failing testset - #72

Merged
JamesWrigley merged 2 commits into
JuliaTesting:masterfrom
ParadaCarleton:failfast-keyword
Oct 25, 2026
Merged

JamesWrigley merged 2 commits into
JuliaTesting:masterfrom
ParadaCarleton:failfast-keyword

Conversation

@ParadaCarleton

@ParadaCarleton ParadaCarleton commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

retest stops dispatching testsets at the first one that fails or errors, so on a parallel run the other workers sit idle while the running testsets drain, and the rest of the selection never runs. This PR adds a failfast::Bool keyword to retest (default true, which keeps the current behavior; the default lives in retest_defaults, so Main.__retest_defaults__ can override it); with failfast = false, retest dispatches and prints every selected testset and throws the usual TestSetException at the end. A new test chapter runs a failing testset between passing ones with failfast = false and checks that every testset ran.

@ParadaCarleton
ParadaCarleton marked this pull request as ready for review October 23, 2026 07:02
Comment thread src/ReTest.jl Resolved
Co-authored-by: James Wrigley <JamesWrigley@users.noreply.github.com>

@JamesWrigley JamesWrigley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@JamesWrigley
JamesWrigley merged commit f3b43e5 into JuliaTesting:master Oct 25, 2026
6 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.

2 participants