#swifttesting
The following article covers the differences between the file and filePath macros when unit testing Swift code :

www.sagarunagar.com/blog/swift-f…

#swifttesting #swiftlang
#file vs #filePath in Swift Tests - Cleaner, Cacheable Builds
Learn when to use #file, #fileID, and #filePath in Swift tests. Keep absolute paths out of your build artifacts and get more cache hits on CI.
www.sagarunagar.com
November 17, 2026 at 5:17 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
Tests parametrizados en Swift Testing: las 5 trampas que debes evitar

🚀 SwiftTesting llegó en WWDC24 con una de las funcionalidades más esperadas: los tests parametrizados. En lugar de escribir múltiples tests casi idénticos, podemos ejecutar un solo test con diferentes argumentos automáticamente.…
Tests parametrizados en Swift Testing: las 5 trampas que debes evitar
🚀 SwiftTesting llegó en WWDC24 con una de las funcionalidades más esperadas: los tests parametrizados. En lugar de escribir múltiples tests casi idénticos, podemos ejecutar un solo test con diferentes argumentos automáticamente. ⚠️ Sin embargo, la conveniencia de parametrizar puede llevarnos a cometer errores sutiles que comprometen la calidad de nuestras pruebas. Migrar decenas de miles de tests ha revelado patrones problemáticos que debemos evitar.
swiftpills.com
December 2, 2025 at 10:35 AM
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
Afternoon workshops at mDevCamp 2025 💡
🔧 Android Studio Plugins with Kotlin – Michal Ursiny (Sky Czech)
🧪 SwiftTesting – Daniel Steinberg
Custom tools & cleaner tests – it’s happening right now!

#mDevCamp2025 #MobileDev #Android #Swift #Prague
June 2, 2025 at 11:59 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
📸 𝑆𝑛𝑎𝑝𝑠ℎ𝑜𝑡𝑇𝑒𝑠𝑡𝑖𝑛𝑔 by Point-Free (@pointfree.co)

Snapshot test any value on any Swift platform - not just UIViews. Supports images, text, JSON, plist, and custom formats. Integrates seamlessly with 𝑆𝑤𝑖𝑓𝑡𝑇𝑒𝑠𝑡𝑖𝑛𝑔.

#Swift #Testing

github.com/pointfreeco/...
GitHub - pointfreeco/swift-snapshot-testing: 📸 Delightful Swift snapshot testing.
📸 Delightful Swift snapshot testing. Contribute to pointfreeco/swift-snapshot-testing development by creating an account on GitHub.
github.com
March 26, 2026 at 4:03 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
I am doing Swift - SwiftTesting
November 27, 2024 at 4:39 PM
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
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
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'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
<a href="https://zenn.dev/coconala/articles/d437fb921d61b6" class="hover:underline text-blue-600 dark:text-sky-400 no-card-link" target="_blank" rel="noopener" data-link="bsky">zenn.dev/coconala/articles/d...
XCTestからSwiftTestingへ:モダンなiOSテスト手法とBDDによる仕様書化
XCTestからSwiftTestingへ:モダンなiOSテスト手法とBDDによる仕様書化
zenn.dev
April 28, 2025 at 8:11 AM
Wrote some XCTests last night (can’t use SwiftTesting for a few reasons right now) and it ran incredibly slow on an Intel Mac. I wonder if Apple even cares about Intel Macs now?
January 22, 2025 at 6:11 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
@grynspan - I'm not someone who writes tests much, but I'm recently trying to do so more often. This evening I tried out SwiftTesting - it's so very good and so easy to understand! Thanks very much much for it.
Jonathan Grynspan (@grynspan@hachyderm.io)
903 Posts, 100 Following, 549 Followers · Might know what he's doing. (Says as much on his business cards.) Any ol’ pronouns will do. 🦻🏻
hachyderm.io
March 13, 2025 at 7:54 PM
Correct me if I’m wrong but in #SwiftTesting I think #️⃣expect(Bool(false), “Knew this would fail”) == Issue.record(“Knew this would fail”)
May 7, 2025 at 8:48 PM