AI-powered job analysis and resume coaching tool using GPT. Analyzes job postings and provides personalized recommendations to job seekers for improving their resumes.
MIT License
55
stars
15
forks
source link
Add Code Coverage Metrics to Makefile using pytest-cov module #110
We need to implement code coverage metrics in our project to ensure the quality and effectiveness of our tests. To achieve this, we should integrate the pytest-cov module into our Makefile. This will allow us to generate code coverage reports both in the terminal and as an HTML file that can be saved to GitHub.
Steps to implement:
Install pytest-cov module:
Add pytest-cov to the project's requirements.txt file or install it using pip:
pip install pytest-cov
a - make sure to update the requirements.txt with the version of pytest-cov that is working
Update the Makefile:
Open the Makefile in the project's root directory.
Add a new target, e.g., coverage, to run the tests with code coverage:
coverage:
pytest --cov=<project_directory> --cov-report term --cov-report html
Replace <project_directory> with the actual directory containing the project's code.
Run the code coverage:
In the terminal, navigate to the project's root directory.
Execute the following command to run the tests with code coverage:
make coverage
NOTE: before submitting pull request make sure you run make check and that all test are passing, thank you!
We need to implement code coverage metrics in our project to ensure the quality and effectiveness of our tests. To achieve this, we should integrate the pytest-cov module into our Makefile. This will allow us to generate code coverage reports both in the terminal and as an HTML file that can be saved to GitHub.
Steps to implement:
Install pytest-cov module:
a - make sure to update the requirements.txt with the version of pytest-cov that is working
Update the Makefile:
coverage
, to run the tests with code coverage:Replace
<project_directory>
with the actual directory containing the project's code.Run the code coverage:
NOTE: before submitting pull request make sure you run
make check
and that all test are passing, thank you!