Building your own test framework a practical guide to writing better automated tests

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...

Full description

Bibliographic Details
Main Author: Irvine, Daniel
Other Authors: Pyhäjärvi, Maaret (writer of foreword)
Format: eBook
Language:English
Published: New York, NY Apress 2023
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
LEADER 03362nmm a2200373 u 4500
001 EB002154824
003 EBX01000000000000001292950
005 00000000000000.0
007 cr|||||||||||||||||||||
008 230404 ||| eng
020 |a 9781484292471 
050 4 |a QA76.76.T48 
100 1 |a Irvine, Daniel 
245 0 0 |a Building your own test framework  |b a practical guide to writing better automated tests  |c Daniel Irvine ; foreword by Maaret Pyhäjärvi 
260 |a New York, NY  |b Apress  |c 2023 
300 |a 280 pages  |b illustrations 
505 0 |a 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 
653 |a Testing / Design 
653 |a Computer software / Testing / fast 
653 |a Computer software / Testing 
700 1 |a Pyhäjärvi, Maaret  |e writer of foreword 
041 0 7 |a eng  |2 ISO 639-2 
989 |b OREILLY  |a O'Reilly 
500 |a Includes index 
028 5 0 |a 10.1007/978-1-4842-9247-1 
024 8 |a 10.1007/978-1-4842-9247-1 
776 |z 9781484292471 
776 |z 9781484292464 
776 |z 1484292472 
776 |z 1484292464 
856 4 0 |u https://learning.oreilly.com/library/view/~/9781484292471/?ar  |x Verlag  |3 Volltext 
082 0 |a 745.4 
082 0 |a 005.1/4 
520 |a 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