Open dbarnett opened 3 years ago
In general, I'd like vim-coverage to stay agnostic of the details about how to invoke different test tools that generate coverage, and focus on a great experience for being able to automatically pick up and show new coverage findings.
For "bazel coverage", let's focus the design around a good way for outside code to signal to the plugin "I have new coverage results, here's where to find them, please load them into vim". I'm going to suggest as a quick-and-dirty solution that looks something like:
call maktaba#plugin#Get('coverage').globals._lcov_temp_search_path = [ SOMEPATH ]
call coverage#Show('lcov')
and then work out a more intuitive interface later to handle passing that data through.
For working on bazel projects, it would be great to have a simple way to show coverage results generated from
bazel coverage
(see https://docs.bazel.build/versions/master/command-line-reference.html#coverage and https://blog.bazel.build/2018/10/29/bazel-0.19.0.html#code-coverage).A gcov coverage provider (#6) gets us part of the way there, but the wiring gets a little complicated for how to easily…
bazel coverage
command@okkays