Android Test-Driven Development by Tutorials
Book information
Description
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?
Similar books
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF
THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.
1858 · PDF
Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.
2022 · PDF
The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians
1809 · PDF
Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix
2008 · PDF