Build Your Own Test Framework
- Paperback: 293 pages
- Publisher: WOW! eBook (March 10, 2023)
- Language: English
- ISBN-10: 1484292464
- ISBN-13: 978-1484292464
Build 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 Build Your Own Test Framework book is a build-your-own adventure designed for individual reading and for collaborative workshops.
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.
- Build an xUnit automated test framework
- See how an automated test runner works
- Understand the best practices for automated unit testing
- Effectively use test doubles and mocks
By the end of the Build Your Own Test Framework book, you will have gained a solid understanding of automated testing principles that you can immediately apply to your work projects.