Cargando…

Modularizing legacy projects using TDD : test-driven development with XCTest for IOS /

Improve current or new projects with top notch testability and maintainability. Writing tests improves the design of your apps, as it pushes you to have a more modularized design. This in turn improves the maintainability and sustainability of your apps. This book is for iOS developers who already k...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: El-Morabea, Khaled
Otros Autores: El-Garem, Hassaan
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Berkeley, CA : Apress L.P., 2021.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)

MARC

LEADER 00000cam a2200000 a 4500
001 OR_on1283848581
003 OCoLC
005 20231017213018.0
006 m o d
007 cr cnu---unuuu
008 211106s2021 cau o 001 0 eng d
040 |a EBLCP  |b eng  |e pn  |c EBLCP  |d TOH  |d ORMDA  |d OCLCO  |d OCLCF  |d GW5XE  |d YDX  |d STF  |d OCLCO  |d OCL  |d K6U  |d OCLCQ  |d UKAHL  |d OCLCQ 
019 |a 1280461386  |a 1280598700  |a 1281133129  |a 1281977131  |a 1287263722 
020 |a 9781484274286  |q (electronic bk.) 
020 |a 1484274288  |q (electronic bk.) 
020 |z 148427427X 
020 |z 9781484274279 
024 7 |a 10.1007/978-1-4842-7428-6  |2 doi 
029 1 |a AU@  |b 000070128202 
029 1 |a AU@  |b 000070164728 
029 1 |a AU@  |b 000070278383 
035 |a (OCoLC)1283848581  |z (OCoLC)1280461386  |z (OCoLC)1280598700  |z (OCoLC)1281133129  |z (OCoLC)1281977131  |z (OCoLC)1287263722 
037 |a 9781484274286  |b O'Reilly Media 
050 4 |a QA76.76.T48 
072 7 |a COM051370  |2 bisacsh 
082 0 4 |a 005.1/4  |2 23 
082 0 4 |a 005.3  |2 23 
049 |a UAMI 
100 1 |a El-Morabea, Khaled. 
245 1 0 |a Modularizing legacy projects using TDD :  |b test-driven development with XCTest for IOS /  |c Khaled El-Morabea, Hassaan El-Garem. 
260 |a Berkeley, CA :  |b Apress L.P.,  |c 2021. 
300 |a 1 online resource (343 pages) 
336 |a text  |b txt  |2 rdacontent 
337 |a computer  |b c  |2 rdamedia 
338 |a online resource  |b cr  |2 rdacarrier 
588 0 |a Print version record. 
505 0 |a Intro -- Table of Contents -- About the Authors -- About the Technical Reviewer -- Acknowledgments -- Chapter 1: TDD Basics -- Types of Testing -- Trouble with Automated Testing -- TDD in a Nutshell -- Why Use TDD? -- External and Internal Quality -- When to Use TDD? -- When Not to Use TDD? -- Refactoring -- Modularization -- Test Structure -- Let's TDD -- Maximum Out of TDD -- Exercise -- Summary -- Chapter 2: Unit Tests -- Your First Test -- What Do We Want to Test? -- Creating a Unit Test Target -- Adding a Test Case Class -- Assert Methods -- Assert Method Types -- Truthfulness Asserts 
505 8 |a Equality Asserts -- Nullability Asserts -- Comparison Asserts -- Errors Asserts -- Expectations -- Expectation Types -- Test Ordering -- Randomized Ordering -- Code Coverage -- Exercise -- Summary -- Chapter 3: UI Tests -- Your First Test -- XCUITest Components -- Our Chapter Goal -- First Test Case -- Launching the App -- Querying the UI -- Relationships -- Interacting with the UI -- UI Events -- Assertions -- Value Assertion -- Accessibility -- Accessibility Tips -- Putting It All Together -- Improve UI Tests -- Exercise -- Summary -- Chapter 4: Testing Pyramid -- Our App -- UI Tests 
505 8 |a Integration Tests -- Unit Tests -- Summary -- Chapter 5: TDD Deep Dive -- CoffeePot -- Eye on the Big Picture -- Requirements -- Testing Pyramid -- First Story -- Architecture -- MVP -- First Integration Test -- Unit Tests -- CoffeeDrinksDataSource -- CoffeeDrinksModelTests -- CoffeeDrinksPresenterTests -- Test Health Check -- Second Story -- Architecture -- Exercise -- Summary -- Chapter 6: Modularization for the Win -- Why Bother with Modularization? -- What Is a Module? -- Modularizing Your App -- Introducing Books -- Modularization Process -- Initial Module Map 
505 8 |a Choose a Class as a Starting Point -- Identify the Class's Responsibilities -- Refactor Responsibilities -- Verification Tests -- Refactoring -- Integration Test -- NetworkLayer -- MainViewModel -- MainViewPresenter -- Last Touches -- Test Value -- Rerun Verification Tests -- Refactor the Rest of the Responsibilities -- Next Starting Point -- Exercise -- Summary -- Chapter 7: Dependency Injection and Mocks -- Stubbing -- Mocking -- Test Doubles Creation -- Creation Using Inheritance -- Creation Using Protocols -- Dependency Injection -- Initializer Injection -- Property Injection 
505 8 |a Stubbing the Network in UI Tests -- Summary -- Chapter 8: Avoiding Multithreading Nightmares -- What Is Concurrency? -- GCD -- Queues -- Serial vs. Concurrent -- Sync vs. Async -- Cost of Concurrency -- Reader-Writer Problem -- Singleton Classes -- Identifying a Race Condition -- Applying TDD to the Problem -- Thread Sanitizer -- Make It Pass -- Fixing Threading Issues in Books -- Applying TDD -- Summary -- Chapter 9: Testing Your Network -- Networking ABCs -- HTTP Requests -- HTTP Responses -- URL -- Networking in iOS -- URLSession -- URLSessionConfiguration -- URLRequest -- URLSessionTask 
500 |a Networking in Books. 
500 |a Includes index. 
520 |a Improve current or new projects with top notch testability and maintainability. Writing tests improves the design of your apps, as it pushes you to have a more modularized design. This in turn improves the maintainability and sustainability of your apps. This book is for iOS developers who already know the basics of iOS and Swift development but want to learn all the testing pro features in iOS. You'll start by reviewing the TDD Cycle and how to implement these concepts on a legacy project or a new one. You'll then walk through TDD step-by-step on a blank project, including setting up test targets, assertions, and expectations. You'll follow that with all levels of testing such as unit tests, integration tests, and end-to-end tests, and also tackle fairly complex, yet badly written legacy code. The book will take you through the journey of modularizing a legacy app using TDD. Throughout this journey, you will be introduced to multiple testing concepts and techniques, like writing tests for network and core data layers. You will write tests to ensure the thread safety of your app. And you'll add a new feature while you are in the middle of refactoring, which is an important skill so you can keep adding features while you are fixing your technical debt. By the end of this book, you will have all the tools needed to become a testing master. What You'll Learn Use mocking and dependency injection to make components more testable Write tests for asynchronous code like network code Add new features to existing legacy apps using TDD Who This Book Is For Experienced iOS developers who care about software quality and meeting customer expectations. 
590 |a O'Reilly  |b O'Reilly Online Learning: Academic/Public Library Edition 
650 0 |a Computer software  |x Testing. 
650 0 |a Application software  |x Development. 
650 6 |a Logiciels d'application  |x Développement. 
650 7 |a Computer software  |x Testing.  |2 fast  |0 (OCoLC)fst00872601 
650 7 |a Application software  |x Development.  |2 fast  |0 (OCoLC)fst00811707 
700 1 |a El-Garem, Hassaan. 
776 0 8 |i Print version:  |a El-Morabea, Khaled.  |t Modularizing Legacy Projects Using TDD.  |d Berkeley, CA : Apress L.P., ©2021  |z 9781484274279 
856 4 0 |u https://learning.oreilly.com/library/view/~/9781484274286/?ar  |z Texto completo (Requiere registro previo con correo institucional) 
938 |a Askews and Holts Library Services  |b ASKH  |n AH39383211 
938 |a ProQuest Ebook Central  |b EBLB  |n EBL6792440 
938 |a YBP Library Services  |b YANK  |n 302530919 
994 |a 92  |b IZTAP