Skip to content

lipegomes/python-tdd-unittest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-tdd-unittest

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.

Requirements:

  • 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

Check code quality:

flake8

Perform unit test

To perform the unit test use the command below:

python -m unittest src/tests/test02_calculator.py

Tests coverage

coverage run -m unittest src/tests/test02_calculator.py

coverage report -m src/tests/test02_calculator.py

References

Tools used:

About

This repository is for me to date my studies on tests and TDD (Test Driven Development).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages