Chapter 8. Quality Assurance

In this chapter, we will cover the following topics:

  • Installing Pyflakes
  • Performing static analysis with Pyflakes
  • Analyzing code with Pylint
  • Performing static analysis with Pychecker
  • Testing code with docstrings
  • Writing unit tests
  • Testing code with mocks
  • Testing the BDD way

Introduction

Quality assurance, contrary to popular belief, is not so much about finding bugs as it is about preventing them. We will discuss two ways to improve the code quality, thereby preventing issues. First, we will do static analysis of already existing code. Second, we will cover unit testing; this includes mocking and Behavior Driven Development (BDD).

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

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