MishaKav / pytest-coverage-comment

Comments a pull request with the pytest code coverage badge and full report

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

nakuls003 opened this issue · comments

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.

Can you please provide more information on this?

  • In which command you generate the report?
  • With which configs do you run this action?
  • If you can I will be glad to see the pytest-coverage.txt file

@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.