##SwiftTesting
Maybe a nitpick, but I dislike that Swift Testing snippet defaults to `async throws` test. I prefer starting with the most restrictive type and extend it as needed. I only noticed half my tests were needlessly async throwing hours later, bc the compiler was silent.

#swiftlang #swifttesting #xcode
November 18, 2024 at 11:38 AM
Attachments coming to Swift Testing in a review thread near you!

forums.swift.org/t/st-0009-at...

#swift #swifttesting
March 20, 2025 at 9:51 PM
🧪 𝑆𝑤𝑖𝑓𝑡 𝑇𝑒𝑠𝑡𝑖𝑛𝑔 𝐴𝑔𝑒𝑛𝑡 𝑆𝑘𝑖𝑙𝑙 by Antoine van der Lee (@avanderlee.com)

𝑆𝑤𝑖𝑓𝑡𝑇𝑒𝑠𝑡𝑖𝑛𝑔 is becoming the de-facto standard. Here's how to integrate it into your agentic coding workflows for high-quality test generation.

#SwiftTesting #AI #Swift

www.avanderlee.com/ai-developme...
Swift Testing Agent Skill: Write high quality tests with AI
Explore how the Swift Testing Agent Skill enhances your development process, integrating best practices for effective testing.
www.avanderlee.com
February 23, 2026 at 4:05 PM
🧪 𝑷𝒊𝒕𝒇𝒂𝒍𝒍𝒔 𝒐𝒇 𝑷𝒂𝒓𝒂𝒎𝒆𝒕𝒆𝒓𝒊𝒛𝒆𝒅 𝑻𝒆𝒔𝒕𝒔 by Alex Ozun (@alexozun.com)

Five critical pitfalls that trip up teams adopting Swift Testing at scale. Learn the patterns that prevent test pollution, flaky assertions, and maintenance nightmares as your test suite grows.

#Swift #Testing #SwiftTesting
Pitfalls of Parameterized Tests | Swiftology
In this article, I share my experience adopting Swift Testing at scale and the lessons I learned about **Parameterized Tests**, including five common pitfalls teams may encounter. I also recommend…
swiftology.io
November 17, 2025 at 2:02 PM
Interop between XCTest and Swift Testing? In the economy? It's more likely than you think.

Legitimately, I'm really excited for this. This'll enable much more consistent set of tooling that can easily be used in Swift Testing and in XCTest. It'll also make migrating from XCTest to Swift Testing […]
Original post on hachyderm.io
hachyderm.io
February 25, 2026 at 1:12 AM
Today I share a small tip to use SwiftTesting: `CustomTestStringConvertible`.
It’s a neat protocol to improve the output of your parameterized tests.

craftingswift.dev/articles/imp...

#swiftTesting #quickTip
Improve SwiftTesting Parameterized Tests with `CustomTestStringConvertible`
A small protocol conformance helps improve your test output.
craftingswift.dev
April 28, 2026 at 1:04 PM
Another #swiftTesting tip, if you use custom objects as arguments of a parameterized test, you should make them conform to `CustomTestStringConvertible` developer.apple.com/documentatio...

Then you will have better names in the Xcode's Test navigator
December 19, 2024 at 1:20 PM
forums.swift.org/t/st-0008-ex...

Exit tests! Death tests! Termination tests! In Swift Testing!

#swift #swifttesting
March 20, 2025 at 8:33 PM
Just formally started the proposal process for two new Swift Testing features:

- Exit tests: forums.swift.org/t/pitch-exit...
- Attachments: forums.swift.org/t/pitch-atta...

#swift #swifttesting
February 24, 2025 at 11:21 PM
Would love to see support for #SwiftTesting in snapshot tests from Uber! Opened this as a feature request but who knows 🤷‍♂️ I know under the hood they just do an XCTAssertTrue(errors.count == 0) so it’s all possible

github.com/uber/ios-sna...
[Feature request] Extend `@Test` and `#expect` to work with snapshot testing in SwiftTesting · Issue #199 · uber/ios-snapshot-test-case
Would be really nice to be able to use @Test and #expect in snapshot testing. Particularly @Test for passing in different arguments.
github.com
November 21, 2024 at 12:49 PM
Here's a post on making sure your SwiftTesting parameterised tests show up in the test navigator with nice names using `CustomTestStringConvertible`

paul-samuels.com/blog/2025/03...

#swifttesting #swift
CustomTestStringConvertible · paul-samuels.com
paul-samuels.com
March 25, 2025 at 12:52 AM
✅ 𝐶𝑢𝑠𝑡𝑜𝑚 𝑇𝑒𝑠𝑡 𝐴𝑠𝑠𝑒𝑟𝑡𝑖𝑜𝑛𝑠 𝑖𝑛 𝑆𝑤𝑖𝑓𝑡 𝑇𝑒𝑠𝑡𝑖𝑛𝑔 by Jon Reid (@qualitycoding.org)

Use 𝑆𝑜𝑢𝑟𝑐𝑒𝐿𝑜𝑐𝑎𝑡𝑖𝑜𝑛 to report failures at the call site, not inside helpers. For complex validation, 𝐼𝑠𝑠𝑢𝑒.𝑟𝑒𝑐𝑜𝑟𝑑 keeps failures clean.

#SwiftTesting #Swift

qualitycoding.org/swift-testin...
How to Make Custom Test Assertions in Swift Testing
Stop chasing test failures through helper functions. Here's how to write custom Swift Testing assertions that report errors exactly where they belong.
qualitycoding.org
June 25, 2026 at 5:01 AM
🧪 𝐼𝑚𝑝𝑟𝑜𝑣𝑒 𝑆𝑤𝑖𝑓𝑡𝑇𝑒𝑠𝑡𝑖𝑛𝑔 𝑃𝑎𝑟𝑎𝑚𝑒𝑡𝑒𝑟𝑖𝑧𝑒𝑑 𝑇𝑒𝑠𝑡𝑠 by Felipe Espinoza (@fespinozacast.bsky.social)

𝐶𝑢𝑠𝑡𝑜𝑚𝑇𝑒𝑠𝑡𝑆𝑡𝑟𝑖𝑛𝑔𝐶𝑜𝑛𝑣𝑒𝑟𝑡𝑖𝑏𝑙𝑒 gives parameterized test cases readable names, making failures easier to diagnose in Xcode's test navigator.

#SwiftTesting #Testing

craftingswift.dev/articles/imp...
Improve SwiftTesting Parameterized Tests with `CustomTestStringConvertible`
A small protocol conformance helps improve your test output.
craftingswift.dev
May 14, 2026 at 4:07 PM
I've had some crashes at times with some tests with swift testing.. does anyone have the same experience? developer.apple.com/forums/threa... #swift #swiftTesting #xcode
EXC_BAD_ACCESS crash in some Swift… | Apple Developer Forums
developer.apple.com
December 16, 2024 at 9:42 AM
You can extend public #SwiftTesting structs from a #SwiftLang package.
March 25, 2025 at 7:39 PM
When you don’t want errors in your #SwiftTesting don’t use functions that throw errors.
February 26, 2025 at 11:48 PM
Like power sliding into the finish line. 🏁
#SwiftLang #Appium #SwiftTesting #UITest
January 2, 2025 at 10:46 PM
#SwiftTesting 🗡️ has such a nice edge on it today
January 1, 2025 at 10:46 PM
First time working with the new #SwiftTesting macro.
Loving how easy it is to write tests—and how much it improves readability.
#iOSDev
June 2, 2025 at 11:43 AM
After Swift Testing added support for image attachments on apple platforms and windows platforms (insert 90s-era M$ insult here), they had realized they really should consolidate the different AttachableAs${PLATFORM_SPECIFIC_IMAGE_TYPE} protocols down into just a single AttachableAsImage […]
Original post on hachyderm.io
hachyderm.io
October 23, 2025 at 2:27 AM
There was a little gem in the swift testing documentation developer.apple.com/documentatio...

You can pass more than one collection as argument, then it will use the Cartesian product of combinations as parameters.

I was gonna write a custom function to do this

#swift #swiftTesting
December 19, 2024 at 1:07 PM
I just published A first look at a whole new paradigm for unit testing in Swift link.medium.com/yACgrbgnUQb #Swift #XCTest #SwiftTesting
link.medium.com
February 11, 2025 at 7:47 PM
Swift Testing is a new framework with expressive and intuitive APIs that improve your testing experience. It is powered by macros that allow you to organize and assert your tests. This week, we will learn about the basics of the Swift Testing framework and how […]

[Original post on oldbytes.space]
May 24, 2025 at 7:36 PM