Brief description of your project.
These instructions will get your copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them:
- Python (version 3.x recommended)
- pip (Python package installer)
Explain how to run the automated tests for this system:
python -m unittest discover
To measure the code coverage of your tests, follow these steps:
If you haven't already installed coverage.py
, you can do so using pip:
pip install coverage
To run your tests with coverage, use the following command:
coverage run -m unittest discover
This command will execute all your tests and collect coverage data.
After running the tests, you can generate a coverage report in two formats:
-
Terminal Report:
coverage report
This command will display a coverage report in the terminal.
-
HTML Report:
coverage html
This generates a more detailed HTML report in a directory named
htmlcov
. Openhtmlcov/index.html
in a web browser to view it.
- For a quick overview, use the terminal report.
- For a detailed view, including which lines are not covered by tests, use the HTML report.