You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expand parameterized testing documentation to mention try/await support and showcase helper pattern (#1133)
This expands a few places where we document parameterized testing APIs
to mention `try`/`await` support and showcase a common pattern for
sharing arguments between multiple tests.
### Modifications:
- For each `@Test` macro which accepts arguments, mention that `try` and
`await` are supported and that arguments are lazily evaluated.
- In the "Implementing parameterized tests" article, add a new section
titled "Pass the same arguments to multiple test functions" showcasing
the pattern of extracting common arguments to a separate property.
- Add a [`> Tip:`
callout](https://www.swift.org/documentation/docc/other-formatting-options#Add-Notes-and-Other-Asides)
within that new article section mentioning `try`/`await` support.
### 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.
Fixes rdar://130929060
0 commit comments