Android Test-Driven Development by Tutorials [2nd Ed]
معرفی کتاب «Android Test-Driven Development by Tutorials [2nd Ed]» نوشتهٔ raywenderlich Tutorial Team, Lance Gleason, Victoria Gonda, Fernando Sproviero، منتشرشده توسط نشر Razeware LLC در سال 2021. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Android Test-Driven Development by Tutorials [2nd Ed]» در دستهٔ بدون دستهبندی قرار دارد.
Learn Android Test-Driven Development! Writing apps is hard. Writing testable apps is even harder, but it doesn't have to be. Reading and understanding all the official Google documentation on testing can be time-consuming - and confusing. This is where Android Test-Driven Development comes to the rescue! In this book, you'll learn about Android Test-Driven Development the quick and easy way: by following fun and easy-to-read tutorials. Who This Book Is For This book is for the intermediate Android developers who already know the basics of Android and Kotlin development but want to learn Android Test-Driven Development. Topics Covered in Android Test-Driven Development - Getting Started with Testing: Learn the core concepts involved in testing including what is a test, why should you test, what should you test and what you should not test. - Test-Driven Development (TDD): Discover the Red-Green-Refactor steps and how to apply them. - The Testing Pyramid: Learn about the different types of tests and how to organize them. - Unit Tests: Learn how to start writing unit tests with TDD using JUnit and Mockito. - Integration Tests: Writing tests with different subsystems is a must in today's complex application world. Learn how to test with different subsystems including the persistence and network layers. - Architecting for Testing: Explore how to architect your app for testing and why it matters. - TDD on Legacy Projects: Take your TDD to the next level by learning how to apply it to existing legacy projects. And much more, including Espresso tests, UI tests, code coverage and refactoring. One thing you can count on: after reading this book, you'll be prepared to take advantage of Android Test-Driven Development in your own apps! Book License What You Need Book Source Code & Forums About the Cover About the Authors About the Editors About the Artist Chapter 1: Introduction Who is this book for? How to read this book Key points Where to go from here? Chapter 2: What Is a Test? Why should you test? How to write a test What should you test? What should you not test? When should you not test? What is test coverage? Tools Key points Where to go from here? Chapter 3: What Is TDD? Why is TDD important? Getting started Practicing Red-Green-Refactor Red: writing a failing test Green: making your test pass Writing a second test False positives Refactor: Updating your code TDD takes practice Challenge Key points Where to go from here? Chapter 4: The Testing Pyramid Unit tests Integration tests UI tests Distributing the tests Key points Where to go from here? Chapter 5: Unit Tests When to use unit tests Setting up JUnit Creating unit tests Challenge Key points Where to go from here? Chapter 6: Architecting for Testing Why does architecture matter? Design patterns Architectural design patterns S.O.L.I.D principles Key points Where to go from here? Chapter 7: Introduction to Mockito Why Mockito? Setting up Mockito Creating unit tests with Mockito Challenge Key points Where to go from here? Chapter 8: Integration Getting started When to use integration tests Creating a test class Setting up the test class Writing a failing integration test Testing the wishlist’s save functionality Testing the database queries Testing the data returned Refactoring Running the app Key points Where to go from here? Chapter 9: Testing the Persistence Layer Getting started Setting up the test class Writing a test Testing an insert Testing your query Creating test data Hooking up your database Handling stateful tests Key points Where to go from here? Chapter 10: Testing the Network Layer Getting started Using MockWebServer Mocking the service Using Faker for test data Deciding what tools to use Key points Where to go from here? Chapter 11: User Interface Getting started Using Espresso Writing a UI test Testing for text Refactoring Performing an action Using sharedTest (optional) Key points Where to go from here? Chapter 12: Common Legacy App Problems A brief history of TDD in Android Lean/XP technical practice co-dependency Other legacy issues Wrangling your project Key points Where to go from here? Chapter 13: High-Level Testing With Espresso Getting started Your first assignment Determining your system boundaries Preparing your app for testing Adding legacy tests Understanding your API Setting up your mock data Writing your next test DRYing up your tests Writing your failing test Key points Where to go from here? Chapter 14: Hands-On Focused Refactoring Getting started Adding supplemental coverage before refactoring Refactoring for testability Your first focused refactor Your next refactor Adding test coverage Refactoring SearchForCompanionFragment Insert Koin Challenge Key points Where to go from here? Chapter 15: Refactoring Your Tests Source sets, UTP and sharedTest Testing fragments in isolation Breaking out unit tests Unit testing Retrofit calls DRYing up your tests Challenge Key points Where to go from here? Chapter 16: Strategies for Handling Test Data JSON data Hard-coded data Test object libraries Faker Locally persisted data Key points Where to go from here? Chapter 17: Continuous Integration & Other Related Tools Continuous integration fundamentals Branches and CI CI tools Device farms CI strategy guidelines Key points Where to go from here? Chapter 18: Testing Around Other Components The testable The mockable The untestable Key points Where to go from here? Conclusion Appendix A: Other Related Techniques Acceptance test-driven development Behavior driven development Key points Where to go from here?
دانلود کتاب Android Test-Driven Development by Tutorials [2nd Ed]