Summary

In this chapter, we went through the different tests that can be written for your microservices projects. Functional tests are the tests you will write more often, and WebTest is a great tool to write them. To run the tests, pytest combined with Tox will make your life easier.

Last, but not the least, if you host your project on GitHub, you can set up a whole continuous integration system for free, thanks to Travis-CI. ; From there, numerous free services can be hooked to complement Travis, like Coveralls. You can also automatically build and publish your documentation on ReadTheDocs.

If you want to look at how everything fits together, the microservice project published on GitHub at https://github.com/Runnerly/microservice ;uses Travis-CI, RTD, and coveralls.io.

Now that we've covered how a Flask project can be continuously developed, tested, and documented, we can look at how to design a full microservices-based project. The next chapter will go through the design of such an application.

 

..................Content has been hidden....................

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