For a file named file.py.
- Create a corresponding test file:
tests/test_file.py. - Run these tests with
nose2 tests.test_file -v --with-coverage. - Run
coverage combine && coverage html. - Check the coverage of
file.pyby openinghtmlcov/index.html. - Check style of code by running
flake8 file.py tests/test_file.py.