Let's apply the testing principles we learned to the Product service that we have been building so far. We start from a user point of view and hence with acceptance testing.
Testing the Product service
BDD through Cucumber
The first step is to recall the specification of our product service. In Chapter 4, Extending Your Cloud-Native Application, we built a few features on our product service that allowed us to fetch, add, modify, and delete products, and get a list of product IDs given a product category.
Let's represent this as features in Cucumber.