Improvements to Unit Testing in Swift with Xcode 7
Read OriginalThis 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.
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