Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python, Should I upload my .coverage file to my github repository?

Im using python 3.9 and coverage 6.2

I would like to have a record of my most recent coverage but Im not sure if I should upload my .coverage file. Im guessing no since it sort of has info about my directory layout. So i would like to know how I should go about that, is it even standard to upload such a thing? If not, why not?

I also generated the htmlcov folder but I didnt upload it since it has a default gitignore for the entire folder.

like image 861
Ran Avatar asked Jun 26 '26 20:06

Ran


1 Answers

Most people don't upload the .coverage or HTML report, because they don't need to track it over time. But there's no harm in uploading them. You mention directory layout as if it was a secret to protect, but isn't your layout already committed to GitHub?

If you want to commit the HTML report, you will need to remove the .gitignore file in the directory.

like image 167
Ned Batchelder Avatar answered Jun 28 '26 08:06

Ned Batchelder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!