Load coverage into VSCode #3329
-
Hi, After running "plz cover", what's the correct way to let VSCode show covered/uncovered lines? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Each invocation of |
Beta Was this translation helpful? Give feedback.
Each invocation of
plz cover
writes coverage results toplz-out/log/coverage.json
andplz-out/log/coverage.xml
(these paths can be changed with the--coverage_results_file
and--coverage_xml_report
options toplz 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).