This is a simple calculator application, showing how to use unittest
, pytest
and coverage
packages of python.
Note: Rename the repository to
calculator_project
for it to work
To be run in a directory 1 level above the current repository,
ls
command should showcalculator_app
folder
-
python -m unittest discover -s calculator_project/tests
-
pytest
-
coverage run -m pytest
unittest
Generally available by default
-
pytest
can be installed usingpip install pytest
-
coverage
can be installed usingpip install coverage