Skip to content

Support Swift Testing Global Tests#371

Closed
TicTocCroc wants to merge 2 commits intoXCTestHTMLReport:mainfrom
TicTocCroc:global-tests
Closed

Support Swift Testing Global Tests#371
TicTocCroc wants to merge 2 commits intoXCTestHTMLReport:mainfrom
TicTocCroc:global-tests

Conversation

@TicTocCroc
Copy link
Copy Markdown

The new Swift Testing framework supports writing free function tests at the global scope.

func myTest() {
  #expect(testToPass)
}

However, XCTestHTMLReport does not output results for these top-level tests, even though the data for these tests exists in the XCResult bundle.

According this comment in the XCResultKit repository, these top level functions are included in the test data in an unusual way, and are exposed by XCResultKit via a globalTests property.

This PR incorporates these global tests into the existing TestGroup.

@TicTocCroc TicTocCroc closed this by deleting the head repository Feb 28, 2026
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.

1 participant