How to fix Report file …/jacocoTestReport.csv does not exist or glob is empty in GitHub Action/Workflow

This is a continuition of my post: How to fix POST /repos/…/check-runs 403 error in GitHub Action/Workflow

The steps mentioned in the aforementioned post resolved the 403 error I was getting. But the build was still not green.

WARNING: Report file build/reports/jacoco/test/jacocoTestReport.csv does not exist or glob build/reports/jacoco/test/jacocoTestReport.csv is empty.
WARNING: No JaCoCo csv reports found.

Seriously, what now? Should I skip adding these steps as part of my workflow? What the freak is going on? This one took a few minutes to figure out. As it turns out, I was missing a crucial setting in testreport.gradle.

And it worked like a charm. Now, I’m waiting for my pull request to be merged, but I thought it was the best time to post about it.

Until next time…

Shabana Mukhtar

Leave a Reply

Your email address will not be published. Required fields are marked *