Book Image

Continuous Delivery for Mobile with fastlane

By : Doron Katz
Book Image

Continuous Delivery for Mobile with fastlane

By: Doron Katz

Overview of this book

Competitive mobile apps depend strongly on the development team’s ability to deliver successful releases, consistently and often. Although continuous integration took a more mainstream priority among the development industry, companies are starting to realize the importance of continuity beyond integration and testing. This book starts off with a brief introduction to fastlane—a robust command-line tool that enables iOS and Android developers to automate their releasing workflow. The book then explores and guides you through all of its features and utilities; it provides the reader a comprehensive understanding of the tool and how to implement them. Themes include setting up and managing your certificates and provisioning and push notification profiles; automating the creation of apps and managing the app metadata on iTunes Connect and the Apple Developer Portal; and building, distributing and publishing your apps to the App Store. You will also learn how to automate the generation of localized screenshots and mesh your continuous delivery workflow into a continuous integration workflow for a more robust setup. By the end of the book, you will gain substantial knowledge on delivering bug free, developer-independent, and stable application release cycle.
Table of Contents (27 chapters)
Title Page
Dedication
www.PacktPub.com
Foreword
Contributors
Preface
Index

An introduction to testing in iOS 11 and Swift 4


This section won't cover everything with unit testing, and there are really interesting sub-topics with testing that you should get familiar with at your own leisure. For some great unit-testing resources, refer to What's New in Testing (WWDC 2017) (https://developer.apple.com/videos/play/wwdc2017/409/) and Testing with Xcode (https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/testing_with_xcode/chapters/03-testing_basics.html).

Unit testing can be defined as a function that tests an aspect of your app. A good testing strategy takes into account testing any new components that are created or changed, from the core functionality boundary testing, to testing bug fixes. Testing also needs to be repeatable and self-validating, or, in other words, you should be able to assert the same results each time you run the test, and the tests should be a clear pass or fail. Furthermore, good tests also need to be independent...