Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Swift Testing Global Tests #371

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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