Swift unit-testing

Open-source Swift projects categorized as unit-testing

Top 9 Swift unit-testing Projects

  • SwifterSwift

    A handy collection of more than 500 native Swift extensions to boost your productivity.

  • ViewInspector

    Runtime introspection and unit testing of SwiftUI views (by nalexn)

    Project mention: What design patterns exist and which should I learn for SwiftUI? | /r/SwiftUI | 2023-04-27

    Unfortunately there is no Apple made built-in way to unit-test SwiftUI views but we are using ViewInspector package for that and inject data / model through environmentObject or AppStorage or FetchRequest or whatever mechanism the view is using. Once you embrace ViewInspector, injecting data into the view is not a big deal.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • Fakery

    :alien: Swift fake data generator

  • Cuckoo

    Boilerplate-free mocking framework for Swift! (by Brightify)

    Project mention: Tests Everywhere - Swift | dev.to | 2023-12-12

    Swift testing this simple Hello World with XCTest and Cuckoo

  • swift-testing

    Project mention: Writing Gnome Apps with Swift | news.ycombinator.com | 2024-03-27

    Take a look at https://github.com/apple/swift-testing It is under active development as Swift first replacement for xctest. For CI service, Xcode cloud does support running tests on mac and iOS hardware. https://developer.apple.com/xcode-cloud/

  • Guise

    An elegant, flexible, type-safe dependency resolution framework for Swift (by Prosumma)

  • Guava

    A Swift test double library. Guava - looks like an apple but it's not. (by merindorium)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • NetworkUnitTestDemo

    Demonstrates how to create unit tests of network code by plugging into Foundation's URL Loading System

  • ios-todo-app-with-unit-testing

    Sample code for the articles written on Ultimate guide to iOS unit testing. https://blog.canopas.com/the-ultimate-guide-to-ios-unit-testing-with-best-practices-part-1-c3a484b8dc8d

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-03-27.

Swift unit-testing related posts

Index

What are some of the best open-source unit-testing projects in Swift? This list will help you:

Project Stars
1 SwifterSwift 13,614
2 ViewInspector 2,033
3 Fakery 1,777
4 Cuckoo 1,636
5 swift-testing 1,045
6 Guise 58
7 Guava 10
8 NetworkUnitTestDemo 2
9 ios-todo-app-with-unit-testing 0
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com