iOS code testing : test-driven development and behavior-driven development with Swift / Abhishek Mishra.
By: Mishra, Abhishek [author.].
Series: Publisher: [Berkeley, California] : Apress, 2017Distributor: New York, NY : Springer Science + Business Media Copyright date: ©2017Description: xix, 440 pages : illustrations ; 23 cm.Content type: text Media type: unmediated Carrier type: volumeISBN: 9781484226889.Other title: Test-driven development and behavior-driven development with Swift.Subject(s): iOS (Electronic resource) | iOS (Electronic resource) | Computer software -- Testing | Application software -- Development | Swift (Computer program language) | Application software -- Development | Computer software -- Testing | Swift (Computer program language)Genre/Form: Print books.Current location | Call number | Status | Date due | Barcode | Item holds |
---|---|---|---|---|---|
On Shelf | QA76.76.T48 M57 2017 (Browse shelf) | Available | AU00000000012422 |
Includes index.
Introduction to test-driven development -- Writing your first set of unit tests with Xcode -- The MVVM architectural pattern -- Applying TDD to the model -- Applying TDD to view controllers -- Applying TDD to collection view controllers -- Testing URLSession -- Working with legacy code -- Continuous integration -- Introduction to behavior-driven development -- Installing quuick -- Applying TDD and BDD techniques -- Testing the user interface.
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.