Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 611 Bytes

File metadata and controls

11 lines (7 loc) · 611 Bytes

Codeschool presentation - Good with Unit testing: Principles, Python and TDD

Here you will find the scripts that I have used to present some examples for unit testing. Feel free to use this to see how unit testing works, or feel free to use these scripts as a template to your unit testing.

To run pytest, simply run pytest in terminal, inside the example_code folder. To run pytest-cov, run the following line instead from your terminal:

Prerequisites: Install dependencies with pip install pytest pytest-cov pytest-mock before running the tests.

pytest --cov=bin --cov-report=html