17.5 Using tox to run comprehensive quality checks
When we start using multiple CI/CD tools, it’s essential to make sure all of the tools are used consistently. The virtual environments must also be built consistently.
Traditionally, a tool like make was used to rebuild target files when source files were modified. This requires a great deal of care because Python doesn’t really fit the compiler-centric model of make.
Tools like tox and nox are far more helpful for running comprehensive sequences of test and CI/CD tools on Python code.
17.5.1 Getting ready
For careful software development, a variety of tools can be useful:
Unit testing: We can use the built-in doctest or unittest modules. We can also use tools like pytest to find and run a test suite.
Benchmarking: Also called performance testing. The pytest-benchmark project offers a handy fixture for assuring performance meets...