Documenting and Testing MicroServices

In this chapter, we will talk about two important aspects of a Microservices-based application: documentation and testing. The documentation tells us what this service would do and how it can be used. Without this information, it is not possible for an end user to take advantage of the services you created.

The second aspect we will cover in this chapter is testing. Testing, as we know, is an important factor for any application code you write. You should never ship untested code. The age-old golden rule of software engineering, or any engineering for that matter, is to catch the errors early in the development, as the cost to fix things increases over time due to the impact a change will have on the overall application.

We will cover the following topics in this chapter:

  • Documenting Microservices
  • Swagger
  • ApiDoc
  • Additional Documentation Frameworks
  • Testing Microservices
  • Unit Testing
  • Integration Testing
  • Service Testing
  • End-to-end Testing
  • Exploring what to Test
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.137.12