boscosylvester-john / se_hw_LuaToPython

MIT License
0 stars 0 forks source link

Add code coverage checks #3

Closed kamathprasad9 closed 1 year ago

kamathprasad9 commented 1 year ago

Automated code coverage checks using github actions to be implemented

tusharkini commented 1 year ago

I tried adding the coverage statistics to the repo and create a badge. Apparently only the repo owner can use codecov to create the badge and generate the coverage. You can also use codacy if you want.

tusharkini commented 1 year ago

You need to use python module coverage by installing it in your system. Use $coverage run init.py inside of the tests folder to generate the coverage. Also you can see the coverage results by using $ coverage results. Currently the code coverage is around 73%. refer the documentation here

boscosylvester-john commented 1 year ago

Code coverage added. To execute code coverage run command "coverage report" To generate html coverage report run command "coverage html" Latest html coverage report has been placed under "htmlcov/index.html"