Madrapps / jacoco-report

Github action that publishes the JaCoCo report as a comment in the Pull Request
https://github.com/marketplace/actions/jacoco-report
MIT License
144 stars 63 forks source link

TypeError when xml report is empty #64

Open arkadiuszpalka opened 1 year ago

arkadiuszpalka commented 1 year ago

Version: madrapps/jacoco-report@v1.6.1 empty.xml:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><!DOCTYPE report PUBLIC "-//JACOCO//DTD Report 1.1//EN" "report.dtd"><report name=":subproject:subproject2"/>

When one of the modules does not data to present, the report is empty but it seems like the pipeline is passing with an error but do not create comment in PR.

Error: TypeError: Cannot read properties of undefined (reading 'find')