Skip to content

Latest commit

 

History

History
162 lines (152 loc) · 18.5 KB

README.md

File metadata and controls

162 lines (152 loc) · 18.5 KB

Unit Testing in Swift

Collection of awesome blog articles, books, talks, podcasts, tools/frameworks and examples.


🎤 Talks:

WWDC 2018 - Testing Tips & Tricks
WWDC 2017 - Engineering for Testability
WWDC 2017 - What's New in Testing
WWDC 2016 - Advanced Testing and Continuous Integration
WWDC 2015 - UI Testing in Xcode
Jon Reid - Test Driven Development for iOS
RAMBLER&Co. Rambler.iOS #5. Stas Tsyganov (RU) - VIPER & TDD
RAMBLER&Co. Rambler.iOS #8. Egor Tolstoy (RU) - Clean Unit Tests
RAMBLER&Co. Aleksandr Sychev (RU) - RDSDataSource: Clean tests with Swift
Realm Academy. Jon Reid - Making Mock Objects More Useful
Realm Academy. Jorge Ortiz - TDD For Masses
Realm Academy. Jorge Ortiz - Unit Testing in Swift 2
Realm Academy. Michael May - Testing an Untested App
Realm Academy. Kyle Fuller - Testing Without xCode
Realm Academy. Veronica Ray - Real World Mocking Swift
Realm Academy. Giovanni Lodi - Testing Realm Apps
Realm Academy. TJ Usiyan - Property-Based Testing with SwiftCheck
Realm Academy. Jaim Zuber - Stylish Developers Guide to Unit Testing in Swift
Realm Academy. Ayaka Nonaka - Testing in Swift Protocols and ViewModels
Realm Academy. Jeff Hui - Testing in Swift
Realm Academy. Sam Soffes - DVR: Network Testing in Swift
Realm Academy. G. Tregoning & P. Zabelin - Successful Test-Driven Development on iOS
NSSpain 2017. Dave Schukin - Why You Shouldn’t Write Tests (Yes, We’re Going There)
CocoaHeads Cincinnati. Doug Sjoquist - Xcode UI Testing. The Good, the Bad, and the Ugly
CocoaHeads Dusseldorf. Dominik Hauser - Test Driven iOS Development With Swift
CocoaHeads Kyiv. John Sundell - Writing Swift Code with Great Testability
CocoaHeads Moscow. (RU) Vadim Drobinin - Testing UI in xCode
CocoaHeads Moscow. (RU) Igor Vasilenko - TDD Patterns and why Do We Need To Know About Them
Devoxx Belgium. Maxime David - How to test your awesome iOS mobile application?
Rambler&Co (RU) Andrey Ryazanov - Test-Driven Development in iOS
fwdays (RU) Alexey Demedetsky - Unit Testing in Swift
Pivotal Labs. Alex Tamoykin - Test Driven Development with Xcode

💡 Docs, Blogs Posts and Written Tutorials:

Apple - Unit Testing Concepts
Andrey Mishanin - Unit Testing: Why and What
Andrew Bancroft - Unit Testing Model Layer with Core Data and Swift
Adam Borek - RxTest. How to test the Observable in Swift
agnosticdev.com - How to Write Unit Tests in Swift
Alexander Grebenyuk - RxSwift Testing
atomicobject.com: Matt Nedrich - Testing with Swift – Approaches & Useful Libraries
albertodebortoli.com - The Template for View Controller Unit Testing
albertodebortoli.com - Offline UI Testing on iOS with Stubs
Agranat Mark - Mocking in Swift with Sourcery (RU)
appcoda.com - Automated UI Tests
appcoda.com - Unit Testing in Swift
appcoda.com - TDD with Quick & Nimble
Bleeding Edge. Matthew Liam Healy - Writing better unit tests in Swift: Part One
Benoit Pasquier - Unit Testing your MVVM architecture in Swift
CocoaAcademy - Setup your iOS Testing Env
Cocoa with Love - Testing Actions Over Time
Chris Eidhof - QuickCheck-in Swift
cobeisfresh.com - Unit Testing iOS in Swift: A Testable Architecture
cocoacasts.com - What Are You Testing
cocoacasts.com - Write Better Code By Writing Unit Tests
cocoacasts.com - How To Generate Code Coverage Reports In Xcode With Slather
cocoacasts.com - How To Enable Code Coverage In Xcode
cocoacasts.com - How to Mock and Stub a System Class in Swift: Part 1
cocoacasts.com - How to Mock and Stub a System Class in Swift: Part 2
cocoacasts.com - How to Mock and Stub a System Class in Swift: Part 3
cocoacasts.com - How to Unit Test Private Methods in Swift
clean-swift.com - To mock or not to mock
clean-swift.com - Does stubbing give you an empty feeling – am I stubbing too much?
clean-swift.com - Data independence is key to robust architecture and non-fragile unit tests
clean-swift.com - Seed data for your unit tests
clean-swift.com - How to mock an Apple built-in class
clean-swift.com - Advanced Dependency Injection
clean-swift.com - Unit Testing and TDD Terminology
clean-swift.com - How to Make Your Unit Tests Run Faster
FlawlessApp Blog. ShihTing Huang - The complete guide to Network Unit Testing in Swift
FlawlessApp Blog. ShihTing Huang - Cracking the Tests for Core Data
FlawlessApp Blog. ShihTing Huang - Applying Unit Tests to MVVM with Swift
FlawlessApp Blog. Leandro Pérez - Memory Leaks in Swift (Testing for Leaks)
girappe.com - Using SwiftyMocky to generate mocks and simplify unit testing in Swift
Humble iOS Developer - Testing with Moya 101
hoangtran.me - How to unit test your Realm database layer
iOS Unit Testing by Ron Lisle
initwithstyle.net - TDD in Swift Playgrounds
Joe Susnick - How to test a Nib
Krzysztof Zabłocki - Testing iOS Apps
Marco Santa - Test Doubles In Swift
MarisiBrothers.com - Common unit testing techniques on iOS
Mike Ash - Writing Unit Tests
mokacoding.com - Testing callbacks in Swift with XCTest
NSHipster - Unit Testing
objc.io - Issue #15: Testing
Oleg Dreyman - Taking Dependency Injection one step further with Swift
Practical iOS Dev - Four simple rules for architecting iOS unit tests
Quality Coding by John Reid - How to Make Specialized Test Assertions in Swift
Quality Coding by John Reid - I’m Pretty Sure Most of Us Are Wrong about XCTestCase tearDown...
Quality Coding by John Reid - Design Pattern for Tests that Do Real Networking
Quality Coding by John Reid - How Does Swift Support Stubbing and Mocking?
Quality Coding by John Reid - How to Design Swift Mock Objects
Quality Coding by John Reid - Partial Mock: Have You Wished You Could Fake a Return Value in Swift?
Quality Coding by John Reid - Swift Mock Objects: How to Avoid Fragile Tests
Quality Coding by John Reid - Mocking Standalone Functions
Quality Coding by John Reid - Swift Unit Testing Template
raizlabs.com - XCTest and Optional Unwrapping
raywanderlich.com Dominik Hauser - Swift Unit Testing: Mocking Objects
raywanderlich.com Audrey Tam - iOS Unit Testing and UI Testing Tutorial
Rodrigo Cavalcante - Unit Testing UITableView
roadfiresoftware.com - How to Write Unit Tests in Swift 4
Robert C. Martin - The Cycles Of TDD
Robert C. Martin - The Pragmatics Of TDD
robkerr.com - Flexible and Easy Unit Testing of CoreData Persistence Code
Swift 2 Go - How to test with fake data on ios
Swift by Sundell - Unit Testing in Playgrounds
Swift by Sundell - Using Unit Tests to Identify and Avoid Memory Leaks
Swift by Sundell - Mocking in Swift
Swift by Sundell - Testing Swift Code That Uses System Singletons in 3 Easy Steps
Swift by Sundell - Time Traveling in Swift with Unit Tests
Swift by Sundell - Reducing Flakiness in Swift Tests
Swift by Sundell - Getting Started with xCode UI Testing in Swift
Swift by Sundell - Avoiding Force Unwrapping in Swift Unit Tests
Swift by Sundell - Making Swift tests easier to debug
swiftyjimmy.com - How to unit test ViewModel in Swift
Shashikant Jagtap - Network Stubbing options for XCTest and XCUITest in Swift
williamboles.me - Can unit testing and CoreData become BFFs?

👨🏼‍💻 Checklists & Notes:

iOS Testing Manifesto (by Hesham Salman)
Unit Testing Patterns (by Clint Cabanero)
Testing Notes (by Ivan Kusalic)

📙 Books:

Dominik Hauser - TDD in Swift 4
Graham Lee - Test-Driven iOS Development
Gerard Meszaros - xUnit Test Patterns: Refactoring Code
Kent Beck - Test Driven Development: By Example
Orta - Pragmatic iOS Unit Testing
Michael Feathers - Working Effectively with Legacy Code
Mark Seemann - Dependency Injection .NET
Steve Freeman - Growing Object-Oriented Software, Guided by Tests

📻 Podcasts:

FatalError - Getting Started with Unit Testing
FatalError - Hypothetical Testing Tricks
FatalError - Testing Your Network Layer
Podlodka podcast (RU) - Test-Driven Development
RayWenderlich - Unit Testing with Ellen Shapiro
Inside iOS Dev - Testing in Object-Oriented Applications
Inside iOS Dev - Introduction to Dependency Injection
Swift Unwrapped - Testing Swift

📺 Video Tutorials:

RayWanderlich.com RWDevCon 2016: Xcode UI Testing - Live Tutorial Session
Essential Developer - Building a Swift Quiz App with TDD and Modular Design
Swift Programming Tutorials - Testing Asynchronous Code in Swift 3
LetsBuildThatApp.com Brian Woong - What is Unit Testing, Why We Use It, and Sample Test Cases
Code Pro - iOS Unit Test Mocking Tutorial

📦 Awesome Curated Lists (Testing Tools/Frameworks)

Awesome-iOS Testing - iOS testing tools/frameworks.
Awesome-Swift Testing - Swift testing tools/frameworks.