
iOS Code Testing
Test-Driven Development and Behavior-Driven Development with Swift
Abhishek Mishra(Author)
APress
Published on 30. June 2017
Book
Paperback/Softback
XIX, 440 pages
978-1-4842-2688-9 (ISBN)
Description
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. What You Will Learn
Software practitioners, such as Swift developers and mobile app testers.
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. What You Will Learn
-
Fit test to legacy code retrospectively
-
Install and configure popular Swift BDD frameworks
- Practice BDD with Xcode
Software practitioners, such as Swift developers and mobile app testers.
More details
Edition
1st ed.
Language
English
Place of publication
Berkeley
United States
Target group
Professional and scholarly
Illustrations
185 farbige Abbildungen, 14 s/w Abbildungen
XIX, 440 p. 199 illus., 185 illus. in color.
Dimensions
Height: 235 mm
Width: 155 mm
Thickness: 25 mm
Weight
698 gr
ISBN-13
978-1-4842-2688-9 (9781484226889)
DOI
10.1007/978-1-4842-2689-6
Schweitzer Classification
Other editions
Additional editions

E-Book
06/2017
APress
€62.99
Available for download
Person
Abhishek Mishra has been developing software for over 12 years and has experience with a diverse set of programming languages and platforms. He holds a Masters degree in Computer Science from the University of London and is a freelance consultant and trainer specializing in iOS development. He is the author of
Swift iOS: 24-Hour Trainer
and
iPhone & iPad App: 24-Hour Trainer.
He was also the technical editor on
Professional iOS Programming.
Content
Chapter 1 Introduction to Test-Driven Development.- Chapter 2 Writing your first set of Unit Tests.- Chapter 3 Introducing the MVVM pattern.- Chapter 4 Applying TDD techniques to the data model.- Chapter 5 Testing View Controllers.- Chapter 6 Testing Collection Views.- Chapter 7 Testing NSURLSession.- Chapter 8 Testing Legacy code.- Chapter 9 Continuous Integration.- Chapter 10 Introduction to BDD.- Chapter 11 Installing Quick.- Chapter 12 Applying BDD and TDD techniques.- Chapter 13 Testing the UI.