Book Image

Mastering Cross-Platform Development with Xamarin

Book Image

Mastering Cross-Platform Development with Xamarin

Overview of this book

The main goal of this book is to equip you with the required know-how to successfully analyze, develop, and manage Xamarin cross-platform projects using the most efficient, robust, and scalable implementation patterns. This book starts with general topics such as memory management, asynchronous programming, local storage, and networking, and later moves onto platform-specific features. During this transition, you will learn about key tools to leverage the patterns described, as well as advanced implementation strategies and features. The book also presents User Interface design and implementation concepts on Android and iOS platforms from a Xamarin and cross-platform perspective, with the goal to create a consistent but native UI experience. Finally, we show you the toolset for application lifecycle management to help you prepare the development pipeline to manage and see cross-platform projects through to public or private release.
Table of Contents (19 chapters)
Mastering Cross-Platform Development with Xamarin
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Automated testing


Automated testing, in other words running the unit tests or coded UI tests established as part of the development effort, is a fundamental part of the continuous integration cycle in most development projects.

To prepare a test fixture for a Xamarin project, developers can use various frameworks such as Visual Studio testing suite, nUnit, and xUnit. Moreover, Xamarin development teams have the freedom to choose from the available list of source control repositories and CI platforms. Fortunately, each of these aspects of a CI pipeline can be integrated without much hassle, due to the fact that the aforementioned testing frameworks provide test adapters for various configurations (except for the native Visual Studio testing framework).

For instance, let us consider a Xamarin project hosted on the TFVC repository on Visual Studio Team Services, where the unit test fixture is written utilizing the xUnit framework. As a first step, in order for the TFS build agent to facilitate...