Hugendubel.info - Die B2B Online-Buchhandlung 

Merkliste
Die Merkliste ist leer.
Bitte warten - die Druckansicht der Seite wird vorbereitet.
Der Druckdialog öffnet sich, sobald die Seite vollständig geladen wurde.
Sollte die Druckvorschau unvollständig sein, bitte schliessen und "Erneut drucken" wählen.

Build Your Own Test Framework

A Practical Guide to Writing Better Automated Tests
BuchKartoniert, Paperback
269 Seiten
Englisch
Springererschienen am10.03.20231st ed.
Learn to write better automated tests that will dramatically increase your productivity and have fun while doing so. This book is a build-your-own adventure designed for individual reading and for collaborative workshops. You will build an xUnit automated test framework using JavaScript: initially a clone of Jest, but adding a couple of neat features borrowed from RSpec, the genre-defining tool for behavior-driven development (BDD). Along the way, you will explore the philosophy behind automated testing best practices. The automated test runner is one of the most important innovations within software engineering. But for many programmers, automated testing remains a mystery, and knowing how to write good tests is akin to sorcery.As the chapters of this book unfold, you will see how the humble test runner is an elegant and simple piece of software. Each chapter picks a single feature to build, like the "it" function or the "beforeEach" block. It picks apart the theory of why the feature needs to exist, and how to use it effectively in your own test suites. Every chapter ends with a set of ideas for extension points should you wish to explore further, alone or in groups. The book culminates in an implementation of test doubles and mocks-one of the most difficult and misunderstood concepts within automated testing.By the end of the book, you will have gained a solid understanding of automated testing principles that you can immediately apply to your work projects. What You'll LearnBuild an xUnit automated test frameworkSee how an automated test runner worksUnderstand the best practices for automated unit testingEffectively use test doubles and mocksWho This Book Is ForSoftware developers with JavaScript experience who are seeking to master the art of automated testing.mehr
Verfügbare Formate
BuchKartoniert, Paperback
EUR58,84
E-BookPDF1 - PDF WatermarkE-Book
EUR56,99

Produkt

KlappentextLearn to write better automated tests that will dramatically increase your productivity and have fun while doing so. This book is a build-your-own adventure designed for individual reading and for collaborative workshops. You will build an xUnit automated test framework using JavaScript: initially a clone of Jest, but adding a couple of neat features borrowed from RSpec, the genre-defining tool for behavior-driven development (BDD). Along the way, you will explore the philosophy behind automated testing best practices. The automated test runner is one of the most important innovations within software engineering. But for many programmers, automated testing remains a mystery, and knowing how to write good tests is akin to sorcery.As the chapters of this book unfold, you will see how the humble test runner is an elegant and simple piece of software. Each chapter picks a single feature to build, like the "it" function or the "beforeEach" block. It picks apart the theory of why the feature needs to exist, and how to use it effectively in your own test suites. Every chapter ends with a set of ideas for extension points should you wish to explore further, alone or in groups. The book culminates in an implementation of test doubles and mocks-one of the most difficult and misunderstood concepts within automated testing.By the end of the book, you will have gained a solid understanding of automated testing principles that you can immediately apply to your work projects. What You'll LearnBuild an xUnit automated test frameworkSee how an automated test runner worksUnderstand the best practices for automated unit testingEffectively use test doubles and mocksWho This Book Is ForSoftware developers with JavaScript experience who are seeking to master the art of automated testing.
Details
ISBN/GTIN978-1-4842-9246-4
ProduktartBuch
EinbandartKartoniert, Paperback
Verlag
Erscheinungsjahr2023
Erscheinungsdatum10.03.2023
Auflage1st ed.
Seiten269 Seiten
SpracheEnglisch
IllustrationenXXIV, 269 p. 23 illus.
Artikel-Nr.51838912

Inhalt/Kritik

Inhaltsverzeichnis
Chapter 1: Creating an NPM Package of My Very Own.- Chapter 2: Building it to Define a Test.- Chapter 3: Grouping Tests with Describe.- Chapter 4: Promoting Conciseness with BeforeEach and AfterEach.- Chapter 5: Improving Legibility with Expect.- Chapter 6: Formatting Expectation Errors.- Chapter 7. Automatically Discovering Test Files.- Chapter 8: Focusing on Tests with It.Only and Describe.Only.- Chapter 9: Supporting Asynchronous Tests.- Chapter 10: Reporting.- Chapter 11: Sharing Behavior with it.BehavesLike.- Chapter 12: Tagging Tests.- Chapter 13 : Skipping Tests.- Chapter 14 : Randomizing Tests.- Chapter 15. Understanding test doubles.- Chapter 16. Module Mocks.mehr

Autor

Daniel Irvine is a freelance software developer based in London. He works with a variety of languages including C#, Clojure, JavaScript, and Ruby. When he's not working, he spends time cooking, gardening and practicing yoga. He co-founded the Queer Code London meetup and is an active member of the European software craft community.