MishaKav / pytest-coverage-comment

Comments a pull request with the pytest code coverage badge and full report
MIT License
181 stars 60 forks source link

"Cannot destructure property coverage of report as it is null" error while running coverage with github workflow #156

Closed nakuls003 closed 9 months ago

nakuls003 commented 9 months ago

Run MishaKav/pytest-coverage-comment@main Warning: File "/home/runner/work/sms-gateway/sms-gateway/coverage.xml" doesn't exist Error: TypeError: Cannot destructure property 'coverage' of 'report' as it is null. Error: Cannot destructure property 'coverage' of 'report' as it is null.

MishaKav commented 9 months ago

Can you please provide more information on this?

nakuls003 commented 9 months ago

@MishaKav -- Nevermind, turns out the tests never ran due to an error and hence coverage file wasn't created. Closing the issue. Thanks for the quick response.