The Art of Unit Testing, Third Edition (MEAP V09)

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

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.

Author(s): Roy Osherove
Publisher: Manning Publications
Year: 2023

Language: English
Pages: 325

Copyright_2022_Manning_Publications
welcome
Part_1:_Getting_started
1_The_basics_of_unit_testing
2_A_first_unit_test
3_Breaking_dependencies_with_stubs
4_Interaction_testing_using_mock_objects
5_Isolation_(mocking)_frameworks
6_Unit_testing_async_code
7_Trustworthy_tests
8_Maintainability
9_Readability
10_Working_with_different_test_types
11_Integrating_unit_testing_into_the_organization
12_Working_with_legacy_code