How to Test Services
We’ve been building up to this point where we can use both the testing library and the logging library in another project. The customer of the logging library has always been a microservices C++ developer who is using TDD to design better services.
Because of the focus on services, this chapter will introduce a project that simulates a microservice. We’re not going to include everything that a real service would need. For example, a real service needs networking and the ability to route and queue requests and handle timeouts. Our service will only contain the core methods to start the service and handle requests.
You’ll learn about the challenges involved with testing services and how testing a service is different from ...