Default to failures_first=true#231
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR changes the default value of failures_first from false to true, making ReTestItems run previously failed test items first by default. This is a minor version bump (v1.35.0) that changes default behavior to optimize the development workflow.
- Changed default value of
failures_firstparameter fromfalsetotrue - Updated documentation to reflect the new default behavior
- Added test status resets to ensure test isolation
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| Project.toml | Version bump to 1.35.0 for this feature change |
| src/ReTestItems.jl | Updated failures_first default value to true in function signature and docstring |
| README.md | Updated documentation to explain the new default behavior and when it was introduced |
| test/integrationtests.jl | Added reset_test_status!() calls to prevent test interference from new default behavior |
Comments suppressed due to low confidence (1)
test/integrationtests.jl:1246
- The test expects test item 'no skip, 1 pass' to run first (1/6), but with
failures_first=truenow being the default, this test could fail if the same file was run in a previous test and had failures, causing different ordering. Consider explicitly passingfailures_first=falsetorunteststo ensure the test verifies the original ordering behavior it was designed to test.
@test contains(c1.output, r"START \(1/6\) test item \"no skip, 1 pass\"")
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
NHDaly
approved these changes
Nov 5, 2025
Member
NHDaly
left a comment
There was a problem hiding this comment.
❤️ This is turning into such a great little testing framework ❤️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We've had feedback from users that this option is really helpful, so let's make it the default.
Here's a data point for the overhead it adds for 1,000 testitems:
where i added this timing info like:
I added
ReTestItems.reset_test_status!()to tests as needed. This isn't public API but nowfailures_first=trueis the default i think more likely we will get a feature request for it -- let's see.