Saturday, April 25, 2020

New Book Alert: Microservices Testing in Brief: Using Hoverfly, Pact, and Containers

Recently, I published another book in the Kindle Store, and I wanted to draw your attention to it because if you're doing microservices, I think it can really help you out.

It's called "Microservices Testing in Brief: Using Hoverfly, Pact, and Containers". The material is based on some well-received training I taught in Beijing about a year ago. Here is the description:

Modern software systems are increasingly built using a microservices architecture, where functionality is broken down into many small servers that connect over remote procedure calls. Microservices bring lots of benefits in terms of scalability and development team agility.

But microservices can also complicate the testing process. Fortunately, new tools and approaches are available to tackle these challenges.

In this hands-on book, we will get a brief introduction to:

•Unit testing using API simulation and Hoverfly.
•Integration testing with consumer-driven contracts and Pact.
•System testing with a test container in Docker.

At the end of the book, readers will have a solid foundation for introducing these testing techniques in their microservices environments.


Check it out and let me know what you think!

Saturday, April 11, 2020

Published "Mock Object Testing with Examples Using Mockito"

I just published my latest e-book, "Mock Object Testing with Examples Using Mockito" in the Kindle Store.


The focus of the book is on testing with mock objects in general, rather than a detailed guide to any specific framework. But I had some requests to rework my previous book, "Mock Object Testing with Examples Using EasyMock", to use Mockito. So here you go!

Description:

Mock objects are a powerful tool for unit testing in complex modern software systems. But mock object testing is also misunderstood by many developers who struggle to use mocks to create elegant, maintainable tests.

Using the popular Mockito framework for Java, this book reveals mock object testing across the entire expect-use-verify cycle. Topics include:
•Dependencies and Testable Design
•Creating a Mock from Scratch
•Nice and Strict Mocks
•Matching
•Setting Expectations
•Mock Method Results
•Verification
•Partial and Class Mocking
•Captures

At the end of the book, readers will have a solid grasp on everything that can be done with mocks and be well-prepared to introduce mock object testing into their own unit tests.


Check it out, leave a review, and let me know what you think!

My new weekend project is a short guide to microservices testing based on some training I gave last year. Stay tuned for more news on that.