In some cases, you may see the "Content is not allowed in prolog" error message when trying to read the coverage data from the report. Many text editors auto-add BOM to the UTF-8 file, so invalid text or BOM before the XML declaration, or different encoding will cause this error.
Different options for solving the issue depending on the root cause (invalid text, BOM, different encoding) are explained here.
Good to know:
- The supported report format is XML.
- Paths explanation:
For each file, there are two paths:
- path in coverage data
- path in analysis
The plugin tries to match paths. The way it works is that one path has to be a subpath of the other. The coverage data paths are absolute, and the only way that can match is if they end with the file path inside the repository.