جزییات کتاب
The Art of Unit Testing, Third Edition takes you below the surface and understand how unit testing can transform the way you deliver and maintain software. The Art of Unit Testing, Third Edition guides you step by step from your first simple unit tests to building complete test sets that are maintainable, readable, and trustworthy. Now with examples using JavaScript and Node, this expanded third edition teaches you to write unit tests for async and observable code, as well as methods of faking functions, modules and refactorings. You’ll get to grips with complex subjects such as mocks and stubs, explore how to handle tricky legacy codebases, and save yourself time with tests that function for both frontend and backend applications. The Art of Unit Testing, Third Edition is an essential guide for any unit tester who wants to feel confident writing code that’s easier to create, maintain, and adapt.
What's inside
• Creating readable, maintainable, and trustworthy tests
• Working with fakes, stubs, mock objects, and isolation (mocking) frameworks
• Simple dependency injection techniques
• Refactoring legacy code
About the reader
The examples in the book use JavaScript and Node and cover the full dev stack.