# \#swift-testing

**URL:** https://forums.swift.org/tag/swift-testing/892.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [\[Pitch\] Add Issue Capturing & Test-Utility-specific module to Swift Testing](https://forums.swift.org/t/pitch-add-issue-capturing-test-utility-specific-module-to-swift-testing/90397)

<div class="topic-metadata">

**Author:** [@younata](https://forums.swift.org/u/younata)\
**Replies:** 2\
**Last updated:** [November 5, 2026, 11:46am UTC](https://forums.swift.org/t/pitch-add-issue-capturing-test-utility-specific-module-to-swift-testing/90397 "2026-11-05T11:46:01Z")

</div>

Hello everyone, The Swift Testing Workgroup has been discussing this as a pre-pitch for ~1.5 months now. This one grew out of the pitch for polling confirmations, and I feel it's past time to bring it to a wider audienc…

---

## [\[Preview\] Embedded Swift support in Swift Testing](https://forums.swift.org/t/preview-embedded-swift-support-in-swift-testing/90281)

<div class="topic-metadata">

**Author:** [@grynspan](https://forums.swift.org/u/grynspan)\
**Replies:** 4\
**Last updated:** [November 5, 2026, 10:28am UTC](https://forums.swift.org/t/preview-embedded-swift-support-in-swift-testing/90281 "2026-11-05T10:28:37Z")

</div>

Hi Swift friends (and… Swift enemies?)! I'm here with an exciting new update about Swift Testing. For those of you who keep a close eye on Swift Testing's GitHub repository, you may have noticed a lot of changes landing…

---

## [\[Pitch\] List Swift Testing tags with swift test list --tags](https://forums.swift.org/t/pitch-list-swift-testing-tags-with-swift-test-list-tags/90032)

<div class="topic-metadata">

**Author:** [@letsgobjones](https://forums.swift.org/u/letsgobjones)\
**Replies:** 6\
**Last updated:** [November 2, 2026, 9:37pm UTC](https://forums.swift.org/t/pitch-list-swift-testing-tags-with-swift-test-list-tags/90032 "2026-11-02T21:37:39Z")

</div>

Hello everyone, swift test --filter tag:\<name\> can already run Swift Testing tests by tag, but there is no way to see which tags a package uses. I'd like to propose swift test list --tags, which prints the unique tags u…

---

## [\[Pitch\] Attachments in the Swift Testing JSON event stream](https://forums.swift.org/t/pitch-attachments-in-the-swift-testing-json-event-stream/89956)

<div class="topic-metadata">

**Author:** [@grynspan](https://forums.swift.org/u/grynspan)\
**Replies:** 2\
**Last updated:** [October 9, 2026, 11:48am UTC](https://forums.swift.org/t/pitch-attachments-in-the-swift-testing-json-event-stream/89956 "2026-10-09T11:48:24Z")

</div>

Attachments are a popular feature of Swift Testing (and XCTest on Apple's platforms). When a test saves an attachment, it should be recoverable later by whatever tool(s) is used to analyze the test run. This is easy enou…

---

## [Swift test + RealityKit custom component decode mismatch (has == true, typed decode == nil) — minimal repro](https://forums.swift.org/t/swift-test-realitykit-custom-component-decode-mismatch-has-true-typed-decode-nil-minimal-repro/84937)

<div class="topic-metadata">

**Author:** [@mesqueeb](https://forums.swift.org/u/mesqueeb)\
**Replies:** 5\
**Last updated:** [September 19, 2026, 7:17pm UTC](https://forums.swift.org/t/swift-test-realitykit-custom-component-decode-mismatch-has-true-typed-decode-nil-minimal-repro/84937 "2026-09-19T19:17:37Z")

</div>

Hi all, I’m seeing what looks like a mismatch specifically when running tests via SwiftPM CLI (swift test), and I’m not sure whether this should be tracked as SwiftPM, Swift Testing, or RealityKit. I made a minimal rep…

---

## [ST-0029: Include additional issue metadata in event stream](https://forums.swift.org/t/st-0029-include-additional-issue-metadata-in-event-stream/89234)

<div class="topic-metadata">

**Author:** [@younata](https://forums.swift.org/u/younata)\
**Replies:** 2\
**Last updated:** [September 13, 2026, 4:34pm UTC](https://forums.swift.org/t/st-0029-include-additional-issue-metadata-in-event-stream/89234 "2026-09-13T16:34:23Z")

</div>

Hello Swift community, The review of ST-0029 "Include additional issue metadata in event stream" begins now and runs through September 10, 2026. The proposal is available here: swift-evolution/proposals/testing/0029-a…

---

## [\[Accepted\] ST-0029: Include additional issue metadata in event stream](https://forums.swift.org/t/accepted-st-0029-include-additional-issue-metadata-in-event-stream/89505)

<div class="topic-metadata">

**Author:** [@younata](https://forums.swift.org/u/younata)\
**Replies:** 0\
**Last updated:** [September 13, 2026, 4:33pm UTC](https://forums.swift.org/t/accepted-st-0029-include-additional-issue-metadata-in-event-stream/89505 "2026-09-13T16:33:23Z")

</div>

Hello Swift community, The review of ST-0029: Include additional issue metadata in event stream concluded on September 10, 2026, and the Testing Workgroup decided that the proposal is accepted. Feedback was light, noti…

---

## [ST-0028: Revise Swift Testing’s Attachment/Encodable interop](https://forums.swift.org/t/st-0028-revise-swift-testing-s-attachment-encodable-interop/88904)

<div class="topic-metadata">

**Author:** [@plemarquand](https://forums.swift.org/u/plemarquand)\
**Replies:** 3\
**Last updated:** [August 28, 2026, 1:53pm UTC](https://forums.swift.org/t/st-0028-revise-swift-testing-s-attachment-encodable-interop/88904 "2026-08-28T13:53:31Z")

</div>

Hello Swift Community! The review of \[ST-0028\] "Revise Swift Testing's Attachment/Encodable interop" begins now and runs through Monday August 24, 2026. The proposal is available here: swift-evolution/proposals/testing/…

---

## [ST-0027: Macro for getting the current source location](https://forums.swift.org/t/st-0027-macro-for-getting-the-current-source-location/88743)

<div class="topic-metadata">

**Author:** [@smontgomery](https://forums.swift.org/u/smontgomery)\
**Replies:** 5\
**Last updated:** [August 27, 2026, 4:32pm UTC](https://forums.swift.org/t/st-0027-macro-for-getting-the-current-source-location/88743 "2026-08-27T16:32:17Z")

</div>

Hello Swift community, The review of ST-0027 "Macro for getting the current source location" begins now and runs through August 13, 2026. The proposal is available here: swift-evolution/proposals/testing/0027-sourcelo…

---

## [\[Accepted\] ST-0027: Macro for getting the current source location](https://forums.swift.org/t/accepted-st-0027-macro-for-getting-the-current-source-location/89233)

<div class="topic-metadata">

**Author:** [@smontgomery](https://forums.swift.org/u/smontgomery)\
**Replies:** 0\
**Last updated:** [August 27, 2026, 4:28pm UTC](https://forums.swift.org/t/accepted-st-0027-macro-for-getting-the-current-source-location/89233 "2026-08-27T16:28:12Z")

</div>

Hello Swift community, The review of ST-0027: Macro for getting the current source location concluded on August 13, 2026, and the Testing Workgroup decided that the proposal is accepted. There were a couple questions r…

---

## [\[Pitch\] Add issue fields to JSON ABI schema](https://forums.swift.org/t/pitch-add-issue-fields-to-json-abi-schema/88898)

<div class="topic-metadata">

**Author:** [@jerryjrchen](https://forums.swift.org/u/jerryjrchen)\
**Replies:** 7\
**Last updated:** [August 27, 2026, 12:51am UTC](https://forums.swift.org/t/pitch-add-issue-fields-to-json-abi-schema/88898 "2026-08-27T00:51:22Z")

</div>

The event stream provides a stable interface for external tools to read test events. When encountering an issue while running tests, Swift Testing generates an event which includes a limited amount of issue metadata (sev…

---

## [\[Accepted with modifications\] ST-0026: TaskLocal test trait](https://forums.swift.org/t/accepted-with-modifications-st-0026-tasklocal-test-trait/88986)

<div class="topic-metadata">

**Author:** [@smontgomery](https://forums.swift.org/u/smontgomery)\
**Replies:** 1\
**Last updated:** [August 17, 2026, 1:56am UTC](https://forums.swift.org/t/accepted-with-modifications-st-0026-tasklocal-test-trait/88986 "2026-08-17T01:56:09Z")

</div>

Hello Swift community, The review of ST-0026: TaskLocal test trait concluded on August 10th, 2026. The Testing Workgroup has decided to accept this proposal with one modification: that the label withValue: be added to v…

---

## [ST-0026: TaskLocal test trait](https://forums.swift.org/t/st-0026-tasklocal-test-trait/88358)

<div class="topic-metadata">

**Author:** [@smontgomery](https://forums.swift.org/u/smontgomery)\
**Replies:** 23\
**Last updated:** [August 15, 2026, 4:07am UTC](https://forums.swift.org/t/st-0026-tasklocal-test-trait/88358 "2026-08-15T04:07:06Z")

</div>

Hello Swift Community! The review of ST-0026 "TaskLocal test trait" begins now and runs through July 27, 2026. The proposal is available here: swift-evolution/proposals/testing/0026-task-local-test-trait.md at main · …

---

## [\[Pitch\] Swift Testing macro for getting the current source location](https://forums.swift.org/t/pitch-swift-testing-macro-for-getting-the-current-source-location/87025)

<div class="topic-metadata">

**Author:** [@grynspan](https://forums.swift.org/u/grynspan)\
**Replies:** 8\
**Last updated:** [August 10, 2026, 7:18pm UTC](https://forums.swift.org/t/pitch-swift-testing-macro-for-getting-the-current-source-location/87025 "2026-08-10T19:18:25Z")

</div>

Swift Testing includes a type, SourceLocation, that represents the precise location of something in a file (typically a .swift file). Various Swift Testing API takes an instance of this type in order to correctly attribu…

---

## [\[Pitch\] A Structured Approach to Build and Test Results Data](https://forums.swift.org/t/pitch-a-structured-approach-to-build-and-test-results-data/85799)

<div class="topic-metadata">

**Author:** [@wil-turner](https://forums.swift.org/u/wil-turner)\
**Replies:** 11\
**Last updated:** [July 28, 2026, 10:10pm UTC](https://forums.swift.org/t/pitch-a-structured-approach-to-build-and-test-results-data/85799 "2026-07-28T22:10:49Z")

</div>

Hello Swift community! I would like to pitch the creation of a package containing APIs that provide a unified approach to publishing and consuming results data generated by developer activities, including (but not limit…

---

## [Pitch: Changing behaviour of \`--attachments-path\` to create the directory if it doesn't exists](https://forums.swift.org/t/pitch-changing-behaviour-of-attachments-path-to-create-the-directory-if-it-doesnt-exists/88319)

<div class="topic-metadata">

**Author:** [@bkhouri](https://forums.swift.org/u/bkhouri)\
**Replies:** 3\
**Last updated:** [July 16, 2026, 4:12am UTC](https://forums.swift.org/t/pitch-changing-behaviour-of-attachments-path-to-create-the-directory-if-it-doesnt-exists/88319 "2026-07-16T04:12:50Z")

</div>

Hello folks, I raised Swift Testing should create the attachments-path if it does not exist · Issue #1665 · swiftlang/swift-testing · GitHub at the beginning of April as a means of improving the developer experience usi…

---

## [\[Pitch\] Revise Swift Testing's Attachment/Encodable interop](https://forums.swift.org/t/pitch-revise-swift-testings-attachment-encodable-interop/88122)

<div class="topic-metadata">

**Author:** [@grynspan](https://forums.swift.org/u/grynspan)\
**Replies:** 1\
**Last updated:** [July 13, 2026, 8:47pm UTC](https://forums.swift.org/t/pitch-revise-swift-testings-attachment-encodable-interop/88122 "2026-07-13T20:47:05Z")

</div>

Swift Testing provides automatic support for attaching values that conform to Encodable and NSSecureCoding if they also conform to Attachable. But that extra Attachable conformance is really just there to silence the com…

---

## [\[Review\] ST-0025 Tag-based test execution filtering](https://forums.swift.org/t/review-st-0025-tag-based-test-execution-filtering/87320)

<div class="topic-metadata">

**Author:** [@plemarquand](https://forums.swift.org/u/plemarquand)\
**Replies:** 4\
**Last updated:** [July 1, 2026, 4:14pm UTC](https://forums.swift.org/t/review-st-0025-tag-based-test-execution-filtering/87320 "2026-07-01T16:14:13Z")

</div>

Hello Swift Community! The review of \[ST-0025\] "Tag-based test execution filtering" begins now and runs through Friday June 26, 2026. The proposal is available here: swift-evolution/proposals/testing/0025-tag-based-test…

---

## [\[Accepted\] ST-0025 Tag-based test execution filtering](https://forums.swift.org/t/accepted-st-0025-tag-based-test-execution-filtering/87921)

<div class="topic-metadata">

**Author:** [@plemarquand](https://forums.swift.org/u/plemarquand)\
**Replies:** 0\
**Last updated:** [July 1, 2026, 4:13pm UTC](https://forums.swift.org/t/accepted-st-0025-tag-based-test-execution-filtering/87921 "2026-07-01T16:13:52Z")

</div>

The review of ST-0025 ran from 2026-06-11 to 2026-06-26. The feedback was sparse, with general approval and some clarifying questions that were in line with the proposal. As such, and after discussing in the testing wo…

---

## [\[Pitch\] Data-dependent test serialization](https://forums.swift.org/t/pitch-data-dependent-test-serialization/86096)

<div class="topic-metadata">

**Author:** [@grynspan](https://forums.swift.org/u/grynspan)\
**Replies:** 16\
**Last updated:** [June 30, 2026, 2:31pm UTC](https://forums.swift.org/t/pitch-data-dependent-test-serialization/86096 "2026-06-30T14:31:29Z")

</div>

Swift Testing has a test trait you can apply to a suite or parameterized test called .serialized: @Suite(.serialized) struct TerminalTests { @Test func \`Xterm color emulation\`() { Environment.set("TERM", to: "xter…

---

## [\[Pitch\] Add a \`.taskLocal\` trait to Swift Testing](https://forums.swift.org/t/pitch-add-a-tasklocal-trait-to-swift-testing/87603)

<div class="topic-metadata">

**Author:** [@mbrandonw](https://forums.swift.org/u/mbrandonw)\
**Replies:** 13\
**Last updated:** [June 29, 2026, 7:20pm UTC](https://forums.swift.org/t/pitch-add-a-tasklocal-trait-to-swift-testing/87603 "2026-06-29T19:20:14Z")

</div>

Hi all,@stephencelis and I have a pitch for a new feature to add to Swift Testing: TaskLocal test trait. All the details are in the link above, but in a nutshell, rather than defining a custom conformance to TestTrait, S…

---

## [\[Pitch\] Debugging Swift Tests with LLDB](https://forums.swift.org/t/pitch-debugging-swift-tests-with-lldb/86413)

<div class="topic-metadata">

**Author:** [@plemarquand](https://forums.swift.org/u/plemarquand)\
**Replies:** 6\
**Last updated:** [June 25, 2026, 2:41am UTC](https://forums.swift.org/t/pitch-debugging-swift-tests-with-lldb/86413 "2026-06-25T02:41:39Z")

</div>

Proposal: SE-NNNN Authors: Paul LeMarquand Review Manager: TBD Status: Pitch Implementation: Add LLDB debugger support to swift-test command by plemarquand · Pull Request #9085 · swiftlang/swift-package-manager · GitHub …

---

## [Pitch: Tag-based Test Execution Filtering](https://forums.swift.org/t/pitch-tag-based-test-execution-filtering/86001)

<div class="topic-metadata">

**Author:** [@goose](https://forums.swift.org/u/goose)\
**Replies:** 23\
**Last updated:** [June 12, 2026, 1:49am UTC](https://forums.swift.org/t/pitch-tag-based-test-execution-filtering/86001 "2026-06-12T01:49:47Z")

</div>

Hey folks! I’m noodling on my very first improvement to Swift Testing. The basic premise is that it would be sweet to be able to filter/skip tests & suites based on tags that you’ve applied to those tests & suites. I tak…

---

## [Test much slower (and faster!) using parameterized tests](https://forums.swift.org/t/test-much-slower-and-faster-using-parameterized-tests/72587)

<div class="topic-metadata">

**Author:** [@James\_Dempsey](https://forums.swift.org/u/James_Dempsey)\
**Replies:** 12\
**Last updated:** [June 10, 2026, 5:55pm UTC](https://forums.swift.org/t/test-much-slower-and-faster-using-parameterized-tests/72587 "2026-06-10T17:55:47Z")

</div>

I have an existing XCTest that: Reads in a text file with 512 lines of short strings Splits the string and iterates over each line in a for loop Tests that the string is processed as expected The test takes about 0.23…

---

## [ST-0024 (second review): Test case repetition](https://forums.swift.org/t/st-0024-second-review-test-case-repetition/86352)

<div class="topic-metadata">

**Author:** [@briancroom](https://forums.swift.org/u/briancroom)\
**Replies:** 1\
**Last updated:** [May 20, 2026, 12:18am UTC](https://forums.swift.org/t/st-0024-second-review-test-case-repetition/86352 "2026-05-20T00:18:58Z")

</div>

Hello Swift Community! The second review of ST-0024 “Test case repetition” begins now and runs through May 8, 2026. After feedback and discussion from the first review, the proposal author has expanded the proposal to a…

---

## [Introducing PropertyTestingKit: A swift-testing friendly coverage-guided fuzzer](https://forums.swift.org/t/introducing-propertytestingkit-a-swift-testing-friendly-coverage-guided-fuzzer/86705)

<div class="topic-metadata">

**Author:** [@alex-reilly-dd](https://forums.swift.org/u/alex-reilly-dd)\
**Replies:** 1\
**Last updated:** [May 13, 2026, 9:20pm UTC](https://forums.swift.org/t/introducing-propertytestingkit-a-swift-testing-friendly-coverage-guided-fuzzer/86705 "2026-05-13T21:20:00Z")

</div>

Today I'm releasing the first alpha of PropertyTestingKit! PropertyTestingKit is a coverage-guided fuzzer available for Swift. @Test func testDatabaseQuery() async throws { try await fuzz { table, limit in …

---

## [Exploring contribution opportunities around Swift Testing \[feedback on GSoC proposal\]](https://forums.swift.org/t/exploring-contribution-opportunities-around-swift-testing-feedback-on-gsoc-proposal/86401)

<div class="topic-metadata">

**Author:** [@Demian](https://forums.swift.org/u/Demian)\
**Replies:** 4\
**Last updated:** [May 5, 2026, 5:57am UTC](https://forums.swift.org/t/exploring-contribution-opportunities-around-swift-testing-feedback-on-gsoc-proposal/86401 "2026-05-05T05:57:30Z")

</div>

Hello Swift Community ! :) My name is Demian Yoo. I’m a student from South Korea who studied at Apple Developer Academy @ POSTECH, and I’m currently studying to become an iOS developer. Along the way, I’ve become more i…

---

## [\[Amendment\] ST-0021: Targeted Interoperability between Swift Testing and XCTest](https://forums.swift.org/t/amendment-st-0021-targeted-interoperability-between-swift-testing-and-xctest/86142)

<div class="topic-metadata">

**Author:** [@younata](https://forums.swift.org/u/younata)\
**Replies:** 3\
**Last updated:** [May 4, 2026, 9:19pm UTC](https://forums.swift.org/t/amendment-st-0021-targeted-interoperability-between-swift-testing-and-xctest/86142 "2026-05-04T21:19:00Z")

</div>

Hello Swift Community! In implementing and utilizing interoperability between Swift Testing and XCTest, @jerryjrchen and @smontgomery uncovered an oversight in the original proposal. As originally proposed, the "limited…

---

## [\[Amended\] ST-0021: Targeted Interoperability between Swift Testing and XCTest](https://forums.swift.org/t/amended-st-0021-targeted-interoperability-between-swift-testing-and-xctest/86479)

<div class="topic-metadata">

**Author:** [@younata](https://forums.swift.org/u/younata)\
**Replies:** 0\
**Last updated:** [May 4, 2026, 9:18pm UTC](https://forums.swift.org/t/amended-st-0021-targeted-interoperability-between-swift-testing-and-xctest/86479 "2026-05-04T21:18:29Z")

</div>

Hello Swift Community! The amendment for ST-0021: Targeted Interoperability between Swift Testing and XCTest ran between 2026-04-21 and 2026-04-29. The feedback was very light, with no dissent. After some brief discuss…

---

## [\[Pitch\] Introduction of Globally Scoped Traits and Runtime Configuration](https://forums.swift.org/t/pitch-introduction-of-globally-scoped-traits-and-runtime-configuration/86400)

<div class="topic-metadata">

**Author:** [@ArihantMarwaha](https://forums.swift.org/u/ArihantMarwaha)\
**Replies:** 9\
**Last updated:** [May 4, 2026, 2:42pm UTC](https://forums.swift.org/t/pitch-introduction-of-globally-scoped-traits-and-runtime-configuration/86400 "2026-05-04T14:42:19Z")

</div>

Hi everyone, I’ve been diving deeply into Swift Testing recently, (original proposal) and wanted to pitch an enhancement for how we manage and apply traits at scale. Thanks to @jerryjrchen for the early feedback that en…

[Next page](https://forums.swift.org/tag/swift-testing/892.md?match_all_tags=true&page=1&tags%5B%5D=swift-testing)
