Skip to content

Conversation

iamleeg
Copy link
Contributor

@iamleeg iamleeg commented Jul 17, 2025

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.
@iamleeg iamleeg changed the base branch from main to release/6.2 July 17, 2025 09:17
@stmontgomery
Copy link
Contributor

@swift-ci please test

@iamleeg iamleeg merged commit fb80eb9 into release/6.2 Jul 17, 2025
3 checks passed
@iamleeg iamleeg deleted the iamleeg/140293091-cherry-pick-timeLimit-trait-docs-updates branch July 17, 2025 15:22
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