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

Chapter 14. Automate Unit Tests with scan

So far, we have accomplished a lot with fastlane, automating our workflow from registering to building our apps to publishing them to the app store, along with screenshots and metadata. As you pasue to appreciate how much easier our workflow is, be assured that we aren’t done yet; there is still a lot more to offer, and we will continue to press on with our next action, scan (https://docs.fastlane.tools/actions/run_tests/).

scan fits into our fastlane workflow seamlessly, allowing us to conduct automated testing, either adhoc or as part of our Fastfile, making it easier to create specific configurations to output tests in either HTML, JSON, Unit reports, or through sending the outcome straight to Slack. This action is certainly an important one that should be a part of your lane right before you publish to the App Store, or for beta-testing, to ensure the unit and regression integrity is maintained.

Before we dive deep into what fastlane offers us...