[6.2] Clarify the outcome of applying a timeLimit trait to a suite. (#1225)#1229
Merged
iamleeg merged 1 commit intoJul 17, 2025
Conversation
Make it clearer that the time limit applies to each test or case in the suite, not to the overall runtime of the test suite. ### Motivation: I received feedback that a developer couldn't work out whether `.timeLimit(_:)` on a suite limits each test, or the whole suite. ### Modifications: - Add documentation that explains that the time limit applies to each test or case in a parameterized test, when you apply it to a suite. - Remove some passive-voice sentences in the same documents so that it's clearer what a developer does, and what the testing library does for them. ### Checklist: - [X] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [X] If public symbols are renamed or modified, DocC references should be updated.
Contributor
|
@swift-ci please test |
briancroom
approved these changes
Jul 17, 2025
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.
Explanation:
Update the documentation for the
timeLimittrait to clarify that applying the trait to a suite means that each test in that suite gets the time limit.Scope:
Documentation changes only.
Issues:
Original PRs:
Clarify the outcome of applying a timeLimit trait to a suite. #1225
Risk:
Documentation changes only, so very low risk.
Testing:
N/A
Reviewers:
@stmontgomery