In one of my PR the coverage check has failed(Coverage decreased (-0.006%) to 59.566%). I am not really sure what that implies and would like to get some help in solving it. Thank you
Code coverage doesn’t tell you anything about the quality of your tests. It only counts what lines of code are executed during tests and what aren’t. when you do not write code in a ‘testable’ way, you cannot write unit tests for your code, which means, you cannot have 100% coverage.
My PR was related to fixing a randomly failing test so i altered the corresponding function where the error was happening . So how far is it accepted to have slightly reduced coverage in this scenario?
Coverage is generated automatically after making the PR.
Did you create a test to confirm that your change fixes the reported problem?
The issue was to fix an existing test. I ran the test several times but the issue never occurred and so thought the issue to be fixed