Andrew Bancroft 6/10/2015

Improvements to Unit Testing in Swift with Xcode 7

Read Original

This article discusses improvements to unit testing in Swift introduced with Xcode 7, announced at WWDC 2015. It explains how the @testable keyword allows unit tests to access all internal and public types and members without modifying access modifiers. The article summarizes the simple three-step process: code types with default internal access, add @testable import ModuleName to test files, and begin testing. It also references older articles for Xcode 6.x users and emphasizes understanding over copying code.

Improvements to Unit Testing in Swift with Xcode 7

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet