Skip to content

Load coverage into VSCode #3329

Answered by chrisnovakovic
linuxerwang asked this question in Q&A
Discussion options

You must be logged in to vote

Each invocation of plz cover writes coverage results to plz-out/log/coverage.json and plz-out/log/coverage.xml (these paths can be changed with the --coverage_results_file and --coverage_xml_report options to plz cover). The XML file written by Please doesn't formally conform to a DTD defining a known coverage format, but it ought to be compatible with Cobertura's XML format. I don't use VSCode, but from there it should be a case of using a plugin like coverage-gutters, which apparently supports the parsing of Cobertura XML coverage files (although I make no guarantees about the suitability of that plugin).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by toastwaffle
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3322 on January 14, 2025 12:02.