I have multiple python modules to be tested and I’m testing it using the tox file with the command “coverage run -m test_folder”.
While testing, for few modules I’m getting lower test coverage. All the testcases have been written in the test file. When I checked coverage.html file, I found that for those modules, only function declaration is executing but not the function definition.
I tried debugging the test cases and found that the testcase is executing fine for all the functions of those modules. I also added “#pragma = no cover” for some of the lines which are not included in the testcase. I’m trying to increase test coverage but overall percentage is not increasing because of the above mentioned issue.
May I please know how to resolve this issue?