Skip to content

Conversation

TicTocCroc
Copy link

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.

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