This repository is for me to date my studies on tests and TDD (Test Driven Development), using the classes of the course below:
https://www.udemy.com/course/python-3-do-zero-ao-avancado/
Note: As I study, I try to write the codes in my own way, in addition to reading and using the references contained in the websites of the libs and testing framework.
- Have version 3 of python installed on the notebook or pc.
- Create the virtual environment in the project folder and install the requirements:
Linux or Mac:
pip install virtualenv
virtualenv .venv
source .venv/bin/activate
pip install requirements.txt
Windows:
pip install virtualenv
virtualenv .venv
.venv\Scripts\activate
pip install requirements.txt
flake8
To perform the unit test use the command below:
python -m unittest src/tests/test02_calculator.py
coverage run -m unittest src/tests/test02_calculator.py
coverage report -m src/tests/test02_calculator.py