Title Statements
- Full title :IOS code testing : test-driven development and behavior-driven development with Swift / Abhishek Mishra.
Summary
Put into motion practical examples to master Test-Driven Development (TDD) and acceptance testing in Swift. This book uses a pragmatic approach to writing well-tested code and provides techniques that can be used to retrofit tests to legacy code bases. You'll be introduced to basic principles of TDD, such as Test First, Red-Green-Refactor, Remove Duplicate code, Dependency Injection, and Single Responsibility. Approaches covered include TDD, behavior-driven development (BDD), UI, and acceptance testing with common standard/open source frameworks. iOS Code Testing offers helpful instruction to teach iOS developers to retrospectively fit tests to legacy code, refactor legacy code so as to make the code more testable, install and configure a popular Swift BDD framework, practice BDD with Xcode, and create automated UI tests with Xcode. Additionally, many projects have legacy code bases. Legacy code is often seen as a blocker when it comes to implementing any kind of testing.
Read More ↓Edition Statements
- Publication Date:2017.
Publication Statements
- Publisher(s):Apress
- Place of Publication:Place of publication not identified
- Language:eng
- Publication Date:2017.
The Physical Object
- Description:1 online resource
Edition Identifiers
- ISBN:9781484226896, 1484226895
- DOI:10.1007/978-1-4842-2689-6
- oclc:ocn992786796
- LC Classification:QA76.76.T48
- Dewey Decimal:004
Table of Contents
At a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Chapter 1: Introduction to Test-Driven Development; What Is Test-Driven Development?; TDD Terminology; Subject under Test; Unit Test; State Verification Test; Interaction Test; Negative Test; Test Suite; Assertions; Instantiating Classes for Testing; Principles of Test-Driven Development; Test First; Red -- Green -- Refactor; Write the Minimum Amount of Code; Remove Duplication; Summary; Note; Chapter 2: Writing Your First Set of Unit Tests with Xcode; Downloading and Installing Xcode.
Creating a New Project with Unit Test SupportAdding Support for Unit Tests to an Existing Project; A Tour of Xcode; The Project Navigator; Test Case Classes; The Test Navigator; Viewing Test Reports; Code Coverage Reports; Building the Cookie Factory App; Building the Cookie Class; Building the CookieController Class; Updating the View Controller Class; Viewing Code Coverage Data; Summary; Chapter 3: The MVVM Architectural Pattern; The MVC Architectural Pattern; The Model-ViewController Architectural Pattern; Model-ViewController Testability Issues.
The Model-View-ViewModel Architectural PatternAdvantages of MV…
Subjects
Writers
More from this Series
No reviews yet. Be the first to rate this work.
Files & Downloads
-
iOS Code Testing: Test-Driven Development and Beh…
PDF · 11.4 MB · updated
Rate & Review