Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Nimble... or replace in favor of Swift Testing? #19079

Open
3 of 4 tasks
mokagio opened this issue Jul 20, 2022 · 2 comments
Open
3 of 4 tasks

Upgrade Nimble... or replace in favor of Swift Testing? #19079

mokagio opened this issue Jul 20, 2022 · 2 comments
Labels
Testing Unit and UI Tests and Tooling [Type] Task

Comments

@mokagio
Copy link
Contributor

mokagio commented Jul 20, 2022

Yesterday, I wanted to replace an XCTNSPredicateExpectation usage with a faster Nimble toEventually matcher but I run into some issues adding Nimble to the UITestsFoundation framework via CocoaPods.

This seems like the perfect occasion to:


Update 2024/11 – I updated the issue title to "Upgrade Nimble... or replace in favor of Swift Testing?" I love Nimble and I think it offers much better API for async code testing than XCTest. But how does it stack against Swift Testing? Would it make sense to invest in adopting Swift Testing (which can run alongside XCTest) and drop Nimble? Would any of the code we assert using Nimble need to be updated as well (e.g. to use async?) to ease the migration?

@mokagio mokagio added Testing Unit and UI Tests and Tooling [Type] Core labels Jul 20, 2022
@mokagio mokagio changed the title Upgrade Nimble Upgrade Nimble... or replace in favor of Swift Testing? Nov 13, 2024
@dangermattic
Copy link
Collaborator

Thanks for reporting! 👍

@kean
Copy link
Contributor

kean commented Jan 3, 2025

Would it make sense to invest in adopting Swift Testing (which can run alongside XCTest) and drop Nimble?

I think it's safe to say that Swift Testing is the way to go. I've started using it the new modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing Unit and UI Tests and Tooling [Type] Task
Projects
None yet
Development

No branches or pull requests

3 participants