Art of Unit Testing, The
Autor Javascript, Roy Osherove, Vladimir Khorikoven Limba Engleză Paperback – 22 mar 2024
Recomandăm acest volum programatorilor de orice nivel, de la începători care scriu primele teste până la arhitecți software care doresc să rafineze procesele de livrare a codului. Art of Unit Testing, The, ajunsă la a treia ediție, reprezintă o resursă tehnică fundamentală, adaptată acum ecosistemului modern de JavaScript și Node.js. Remarcăm tranziția autorilor de la exemplele tradiționale în C# spre un mediu asincron și modularizat, reflectând fidel complexitatea aplicațiilor web contemporane. Structura cărții este una riguroasă și practică. Autorii ghidează cititorul prin mecanismele de izolare, explicând detaliat utilizarea obiectelor de tip mock, stub și a framework-urilor de testare. Merită menționat că, deși sintaxa este specifică JavaScript, principiile de design software rămân universale, putând fi extrapolate cu ușurință în Java sau Python. Ca și Vladimir Khorikov în Unit Testing, autorul distilează experiență reală în principii acționabile, punând un accent deosebit pe valoarea pe care testele o aduc pe termen lung: reducerea costurilor de mentenanță și facilitarea refactorizării. Reținem abordarea pragmatică a situațiilor dificile, cum ar fi gestionarea dependențelor prin injecție sau abordarea sistemelor legacy. Spre deosebire de alte manuale pur teoretice, această ediție publicată de Manning Publications oferă un set de instrumente agnostice față de bibliotecile specifice, punând accent pe starea de spirit și disciplina necesare unui dezvoltator de elită. În final, volumul nu se rezumă la a preda o sintaxă, ci construiește o strategie completă pentru validarea logicii de business într-un mod predictibil.
Preț: 276.16 lei
Preț vechi: 345.20 lei
-20%
Carte disponibilă
Livrare economică 22 septembrie-06 octombrie
Livrare express 08-12 septembrie pentru 121.65 lei
Specificații
ISBN-10: 1617297488
Pagini: 325
Dimensiuni: 191 x 236 x 25 mm
Greutate: 0.5 kg
Ediția:3. Auflage
Editura: Manning Publications
De ce să citești această carte
Pentru dezvoltatorii care vor să treacă de la scrierea haotică de teste la o strategie coerentă de testare unitară. Veți câștiga abilitatea de a testa cod asincron complex și de a transforma codul legacy „netestabil” în sisteme stabile și ușor de modificat. Este o investiție esențială pentru a livra software de calitate superioară în mediul Node.js și nu numai.
Despre autor
Roy Osherove este un expert recunoscut la nivel internațional în testare unitară și metodologii agile, fiind autorul unor volume de referință în domeniu. Consultă și antrenează echipe din întreaga lume, menținându-și în același timp statutul de programator activ. Vladimir Khorikov, co-autor al acestei ediții, este Microsoft MVP și un autor consacrat, cunoscut pentru abordările sale structurate asupra principiilor de testare. Împreună, aceștia aduc o perspectivă duală, combinând viziunea strategică cu expertiza tehnică de nișă.
Descriere scurtă
Thousands of developers have learned to hone their code quality under the tutelage of The Art of Unit Testing. This revised third edition updates an international bestseller to reflect modern development tools and practices, as well as to cover JavaScript.
Inside The Art of Unit Testing, Third Edition you will learn how to:
- Create readable, maintainable, and trustworthy tests
- Work with fakes, stubs, mock objects, and isolation frameworks
- Apply simple dependency injection techniques
- Refactor legacy code with confidence
- Test both frontend and backend code
Effective unit tests streamline your software development process and ensure you deliver consistent high-quality code every time. With practical examples in JavaScript and Node, this hands-on guide takes you from your very first unit tests all the way to comprehensive test suites, naming standards, and refactoring techniques. You’ll explore test patterns and organization, working with legacy code and even “untestable” code. The many tool-agnostic examples are presented in JavaScript and carefully designed so that they apply to code written in any language.
About the technology
The art of unit testing is more than just learning the right collection of tools and practices. It’s about understanding what makes great tests tick, finding the right strategy for each unique situation, and knowing what to do when the testing process gets messy. This book delivers insights and advice that will transform the way you test your software.
About the book
The Art of Unit Testing, Third Edition shows you how to create readable and maintainable tests. It goes well beyond basic test creation into organization-wide test strategies, troubleshooting, working with legacy code, and “merciless” refactoring. You’ll love the practical examples and familiar scenarios that make testing come alive as you read. This third edition has been updated with techniques specific to object-oriented, functional, and modular coding styles. The examples use JavaScript.
What's inside
- Deciding on test types and strategies
- Test Entry & Exit Points
- Refactoring legacy code
- Fakes, stubs, mock objects, and isolation frameworks
- Object-Oriented, Functional, and Modular testing styles
About the reader
Examples use JavaScript, TypeScript, and Node.js.
About the author
Roy Osherove is an internationally-recognized expert in unit testing and agile software methodology. Vladimir Khorikov is the author of Manning’s Unit Testing Principles, Practices, and Patterns, a Pluralsight author, and a Microsoft MVP.
Table of Contents
PART 1
1 The basics of unit testing
2 A first unit test
PART 2
3 Breaking dependencies with stubs
4 Interaction testing using mock objects
5 Isolation frameworks
6 Unit testing asynchronous code
PART 3
7 Trustworthy tests
8 Maintainability
PART 4
9 Readability
10 Developing a testing strategy
11 Integrating unit testing into the organization
12 Working with legacy code
Appendix Monkey-patching functions and modules
Notă biografică
Vladimir Khorikov is the author of Unit Testing Principles, Practices, and Patterns, Pluralsight author, and Microsoft MVP. He has mentored numerous teams on the ins and outs of unit testing.