Skip to content

Clarify documentation to mention that unsatisfied @available on @Test will be considered a skip#1551

Merged
stmontgomery merged 2 commits intoswiftlang:mainfrom
stmontgomery:document-availability-skip
Feb 13, 2026
Merged

Clarify documentation to mention that unsatisfied @available on @Test will be considered a skip#1551
stmontgomery merged 2 commits intoswiftlang:mainfrom
stmontgomery:document-availability-skip

Conversation

@stmontgomery
Copy link
Contributor

This is a small improvement to the Limit the availability of a test section of our Defining test functions article to mention that when a test doesn't run due to an @available attribute being unsatisfied, that test will be skipped and represented that way in the results, instead of this only causing a log line to be emitted to the console.

Resolves rdar://161346836

Motivation:

A user indicated they were unclear about the current wording since it sounded as if this situation would only be logged and thus could be overlooked or missed.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

…will be considered a skip

Resolves rdar://161346836
@stmontgomery stmontgomery added this to the Swift 6.4.0 (main) milestone Feb 13, 2026
@stmontgomery stmontgomery self-assigned this Feb 13, 2026
@stmontgomery stmontgomery added documentation 📚 Improvements or additions to documentation enhancement New feature or request labels Feb 13, 2026
@stmontgomery stmontgomery merged commit 9d016ce into swiftlang:main Feb 13, 2026
24 checks passed
@stmontgomery stmontgomery deleted the document-availability-skip branch February 13, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation 📚 Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants