#swifttesting

One More Thing Conferenceomt_conf
2025-06-12

BREAKING NEWS:
“What’s New In Testing” will begin early because Rachel Brindle has a demo ready for us! Come on over by 9:30am so you don’t miss out!

Afterwards, pop into Rachel & Dalton’s tent for the opportunity to win a copy of Daniel Steinberg’s book on Swift Testing.

Oscar Morenooscarmorenodev
2025-06-02

First time working with the new macro.
Loving how easy it is to write tests—and how much it improves readability.

2025-05-24

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 we can use it side-by-side with XCTest.

#Swift #Programming #Testing #SwiftTesting
swiftwithmajid.com/2024/10/22/

Introducing Swift Testing. Basics.
Jonathan Grynspangrynspan@hachyderm.io
2025-05-05

Okay folks. You asked for it. #swifttesting

A screenshot of Xcode and Terminal.app. Xcode shows a Swift Testing test suite containing two test functions, all named with raw identifiers;

```swift
@Suite struct `My example tests` {
  @Test func `one little test`() {}
  @Test func `and/another/one`() {}
}
```

The Terminal window shows a completed call to `swift test` that ran these tests and correctly shows their display names.
Jay :verified_gay:heyjaywilson@iosdev.space
2025-05-01

Stream last night went well! Even learned some more about Swift Testing and serialization.
Here's my full recap jaywilson.zip/posts/2025/05/01

#buildInPublic #Swif #swifttesting

John AckeeseedJohnAckeeseed
2025-03-26

⚠️ If you’re using arguments in Swift Testing, tests run in parallel — which is great unless test order matters.
For example, if you’re using snapshots, the generated file names may depend on test order.

💡 Fix it with .serialized to ensure stable ordering:

2025-03-25

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

Jonathan Grynspangrynspan@hachyderm.io
2025-03-20

Attachments coming to Swift Testing in a review thread near you!

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

#swift #swifttesting

Jonathan Grynspangrynspan@hachyderm.io
2025-03-20

forums.swift.org/t/st-0008-exi

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

#swift #swifttesting

The classic Ron Paul "it's happening!" meme.
Jonathan Grynspangrynspan@hachyderm.io
2025-02-24

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-attac

#swift #swifttesting

2025-01-06

It just hit me - because Swift Testing allows nesting of test suites, you can now have a master suite that contains a suite for testing internal implementation and a suite for testing public interface. So neat

#tdd #swifttesting

Alexander Steineralexsteinerde
2025-01-04

Writing tests and improving my test coverage just helped me to find a few new issues I had, including code paths which weren't called but should have been.
Tests have saved me a lot of trouble.
I think I get more and more convinced that writing tests is very useful (still depending on the situation).

Swift Testing makes this so much easier!

Furnace Creek Softwarefurnacecreek
2024-10-25

We created a little app for iOS and Mac developers to make it easier to migrate Swift XCTests to the Swift Testing framework: furnacecreek.org/testpiler/

2024-10-16

Does anyone know how to make it so that #Xcode doesn't totally lose its shit every time I start a #SwiftTesting test? My current workaround is I have to pick a different tab in the left sidebar and then it settles down.

2024-10-12

While awaiting the #GluSight app review, I finally focus on rewriting unit tests with the new Swift-Testing framework. Once most are done, I’ll replace Quick & Nimble, though they did serve their purpose. I also want to reduce dependencies, and #SwiftTesting is rather elegant.

2024-10-08

Last time, I wrote an article to introduce Swift Testing's confirmation. Are you curious about how confirmation is implemented in Swift Testing? Today's article tells you about the implementation of confirmation. #swift #swifttesting laprasdrum.com/swift-testing/d

2024-10-01

It's my first challenge! As a side project, I created a website last month to publish English articles and wrote several articles so that I could post weekly. Today, I am happy to share my first article with you.
This article is an overview of confirmations, the first half of the contents of Swift Testing, about which I spoke in Japan.
laprasdrum.com/swift-testing/i #swift #testing #swifttesting

Nick Sloannick@sloan.host
2024-09-30

You are better off mocking URLSession than using a URLProtocol for mocking HTTP requests in your tests. If you don’t want to just take my word for it, you can read about why in my latest blog post: nicksloan.com/posts/mocking-ur #swift #testing #swifttesting

2024-09-21

If folks are looking for using Swift Testing with Vapor, you'll encounter all sort of issues.

Here is something that might help you getting out of troubles:
github.com/vapor/vapor/issues/

It's using Lock from @mattiem ; of course. Who would imagine solving a swift concurrency issue without Matt work on it? 😜

2024-08-31

Is #swifttesting not able to understand actor isolation? Here it's complaining that my Regex is not Sendable, but I already isolated it to a global actor.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst