Test-Driven Development with Kotlin
298 pages
French
PDF
4.5

Test-Driven Development with Kotlin

TDD на Kotlin: практическое руководство

Auteur :

Année :

Résumé :

Introduction

The book «Test-Driven Development with Kotlin» (2021) by Cosimo Damiano Prete is a practical guide to implementing test-driven development (TDD) methodology in the Kotlin ecosystem. In an era where code quality and delivery speed are critical success factors, TDD offers a disciplined approach to writing reliable, maintainable, and extensible code. This book is not just a collection of examples, but a comprehensive tutorial that takes the reader from the basics of TDD to building complex applications using modern architectural patterns and libraries.

What this book is about

The book consists of 12 chapters, logically divided into three parts. The first part introduces the basics of TDD and Kotlin: environment setup, writing first tests, the red-green-refactor cycle. The second part delves into advanced techniques: mocks, stubs, testing asynchronous code, working with databases and REST APIs. The third part focuses on integrating TDD into real projects: Clean Architecture, dependency injection, CI/CD, and strategies for testing legacy code.

Who this book is for

The book is aimed at developers already familiar with Kotlin or Java who want to systematically master TDD. It will be useful for both beginners in testing and experienced engineers looking to organize their knowledge. Basic understanding of OOP and Kotlin syntax is sufficient to read it.

What the reader will learn

  • Basics of TDD:

Recommendations