swift test now get first-class uploads, with each test linked to its source file.
New features
- Upload
swift testXML. Pass--swift-test-xunit-pathsto upload the reports written byswift test --xunit-output. One glob covers both the Swift Testing and XCTest files a run writes. See Swift Testing. - Tests attributed to their declaring file. These reports carry no file paths, so Trunk resolves each test to the file it is declared in. CODEOWNERS attribution and file links now work for your Swift tests.
- GitHub Actions support. Use the new
swift-test-xunit-pathsinput ontrunk-io/analytics-uploader. See the GitHub Actions guide. - Declared-file locations for
.xcresult(beta). Add--use-experimental-xcresult-test-locationsto attribute each test in an.xcresultbundle to where it is declared. Passing tests get a file too, and large bundles parse faster. macOS only. See XCTest.
- History resets once. Switching from
--junit-pathsto--swift-test-xunit-pathschanges test IDs, so affected tests start a fresh history. - Pick one format per repository. The same test uploaded from
.xcresultand fromswift testXML counts as two distinct tests.