Unit Testing Principles, Practices, and Patterns
Autor Vladimir Khorikoven Limba Engleză Paperback – 14 ian 2020
Remarcăm de la început că acest volum nu este un curs introductiv pentru începători, ci se adresează programatorilor care stăpânesc deja bazele unit testing-ului și doresc să își rafineze tehnicile pentru a obține un randament maxim. Deși exemplele practice sunt oferite în limbajul C#, principiile și modelele de design explicate de Vladimir Khorikov sunt universal aplicabile în orice ecosistem de dezvoltare software modern.
Suntem de părere că valoarea distinctivă a lucrării Unit Testing rezidă în capacitatea autorului de a oferi un cadru de referință obiectiv prin care cititorul poate decide care teste merită păstrate, care trebuie refactorizate și care ar trebui eliminate complet. Ca și Roy Osherove în The Art of Unit Testing, Third Edition, autorul distilează experiența reală acumulată în peste un deceniu de mentorat în principii acționabile, axându-se pe calitatea suitei de teste mai degrabă decât pe volumul brut de cod testat.
Structura este una pragmatică, ghidând cititorul prin identificarea anti-pattern-urilor și implementarea celor mai bune practici în refactorizarea codului de producție. Dincolo de testele unitare, Vladimir Khorikov extinde perspectiva asupra testelor de integrare, necesare pentru a verifica comportamentul sistemului ca întreg. Abordarea este una tehnică și directă, tipică stilului Manning Publications, punând accent pe sustenabilitatea pe termen lung a proiectelor și pe livrarea de software de calitate prin automatizare fiabilă.
Preț: 267.62 lei
Preț vechi: 334.52 lei
-20%
Carte disponibilă
Livrare economică 30 aprilie-14 mai
Specificații
ISBN-10: 1617296279
Pagini: 256
Ilustrații: Illustrations, unspecified
Dimensiuni: 187 x 235 x 20 mm
Greutate: 0.55 kg
Editura: Manning Publications
De ce să citești această carte
Recomandăm această carte dezvoltatorilor care vor să treacă de la simpla scriere a testelor la proiectarea unei suite de testare eficiente și ușor de întreținut. Veți învăța să identificați testele fragile care încetinesc dezvoltarea și să aplicați modele de design care cresc fiabilitatea codului. Este un instrument esențial pentru profesioniștii care doresc să stăpânească arta refactorizării și să maximizeze valoarea adusă de testarea automatizată.
Descriere
Unit Testing: Principles, Patterns and Practices shows you how to refine your existing unit tests by implementing modern best practices. You'll learn to spot which tests are performing, which need refactoring, and which need to be deleted entirely! Upgrade your testing suite with new testing styles, good patterns, and reliable automated testing.
Unit Testing: Principles, Practices and Patterns is a practical guide to modern unit testing best practices. Microsoft MVP Vladimir Khorikov takes you hands-on with examples of the ideal unit test and unit testing practices, building your skills step by step on a solid foundation.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
Descriere scurtă
A practical and results-driven approach to unit testing
Refine your existing unit tests by implementing modern best practices
Learn the four pillars of a good unit test
Safely automate your testing process to save time and money
Spot which tests need refactoring, and which need to be deleted entirely Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About The Book
Great testing practices maximize your project quality and delivery speed by identifying bad code early in the development process. Wrong tests will break your code, multiply bugs, and increase time and costs. You owe it to yourself--and your projects--to learn how to do excellent unit testing. Unit Testing Principles, Patterns and Practices teaches you to design and write tests that target key areas of your code including the domain model. In this clearly written guide, you learn to develop professional-quality tests and test suites and integrate testing throughout the application life cycle. As you adopt a testing mindset, you'll be amazed at how better tests cause you to write better code. What You Will Learn Universal guidelines to assess any unit test
Testing to identify and avoid anti-patterns
Refactoring tests along with the production code
Using integration tests to verify the whole system This Book Is Written For
For readers who know the basics of unit testing. Examples are written in C# and can easily be applied to any language. About the Author Vladimir Khorikov is an author, blogger, and Microsoft MVP. He has mentored numerous teams on the ins and outs of unit testing. Table of Contents: PART 1 THE BIGGER PICTURE 1 ] The goal of unit testing
2 ] What is a unit test?
3 ] The anatomy of a unit test PART 2 MAKING YOUR TESTS WORK FOR YOU 4 ] The four pillars of a good unit test
5 ] Mocks and test fragility
6 ] Styles of unit testing
7 ] Refactoring toward valuable unit tests PART 3 INTEGRATION TESTING 8 ] Why integration testing?
9 ] Mocking best practices
10 ] Testing the database PART 4 UNIT TESTING ANTI-PATTERNS 11 ] Unit testing anti-patterns