getgauge / gauge-python

Python language runner for Gauge
MIT License
90 stars 38 forks source link

Enable test coverage report according to README #399

Closed sschulz92 closed 1 month ago

sschulz92 commented 1 month ago

As per README.md, you should be able to create a coverage report after executing the tests. Apparently this was not possible at all since the test cases were executed without using the Python module "coverage".

README.md:

Tests Coverage
python build.py --test
coverage report -m

With my changes you can execute coverage html or coverage report -m successfully.

Besides the required changes in build.py, I resolved even more code-smells like "unused variable".