iOS Code Testing

Test-Driven Development and Behavior-Driven Development with Swift

Authors: Mishra, Abhishek

  • Design with test-driven development techniques
  • Refactor legacy code to make the code more testable
  • Create automated UI tests with Xcode
see more benefits

Buy this book

eBook $39.99
price for USA (gross)
  • ISBN 978-1-4842-2689-6
  • Digitally watermarked, DRM-free
  • Included format: EPUB, PDF
  • ebooks can be used on all reading devices
  • Immediate eBook download after purchase
Softcover $49.99
price for USA
  • ISBN 978-1-4842-2688-9
  • Free shipping for individuals worldwide
  • Usually dispatched within 3 to 5 business days.
About this book

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

  • Fit test to legacy code retrospectively
  • Install and configure popular Swift BDD frameworks
  • Practice BDD with Xcode
Who This Book Is For
Software practitioners, such as Swift developers and mobile app testers.

About the authors

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.

Table of contents (13 chapters)

  • Introduction to Test-Driven Development

    Mishra, Abhishek

    Pages 1-11

  • Writing Your First Set of Unit Tests with Xcode

    Mishra, Abhishek

    Pages 13-41

  • The MVVM Architectural Pattern

    Mishra, Abhishek

    Pages 43-60

  • Applying TDD to the Model

    Mishra, Abhishek

    Pages 61-99

  • Applying TDD to View Controllers

    Mishra, Abhishek

    Pages 101-160

Buy this book

eBook $39.99
price for USA (gross)
  • ISBN 978-1-4842-2689-6
  • Digitally watermarked, DRM-free
  • Included format: EPUB, PDF
  • ebooks can be used on all reading devices
  • Immediate eBook download after purchase
Softcover $49.99
price for USA
  • ISBN 978-1-4842-2688-9
  • Free shipping for individuals worldwide
  • Usually dispatched within 3 to 5 business days.
Loading...

Recommended for you

Loading...

Bibliographic Information

Bibliographic Information
Book Title
iOS Code Testing
Book Subtitle
Test-Driven Development and Behavior-Driven Development with Swift
Authors
Copyright
2017
Publisher
Apress
Copyright Holder
Abhishek Mishra
eBook ISBN
978-1-4842-2689-6
DOI
10.1007/978-1-4842-2689-6
Softcover ISBN
978-1-4842-2688-9
Edition Number
1
Number of Pages
XIX, 440
Number of Illustrations and Tables
14 b/w illustrations, 185 illustrations in colour
Topics