/software-qa-wk3-unittest

Unit tests with mocks for week 3 of Software Testing & Quality Assurance course.

Primary LanguagePython

Python Unit Tests

Use PyCharm Community as a simple IDE.

Unit tests use unittest.

Install coverage using pip install coverage in your terminal.

Run Tests

python -m unittest

Test Coverage

We can test the files found in the app directory using:

coverage run --source=app  -m unittest

To see report:

coverage report

Run it all together:

coverage run --source=app  -m unittest && coverage report