I have released covimerage (https://github.com/Vimjas/covimerage), which is a
helper for gathering coverage reporting for Vimscript.
The README has instructions on how to use it, but the basic usage is to wrap
your test runner with it, e.g.:
covimerage run vim -Nu test/vimrc -c 'Vader! test/**'
This will then add arguments to `vim` to generate a profile, which then is used
to parse the coverage from.
Since SCRIPTs and FUNCTIONs are reported separately in the profile output file
this is not trivial, but works quite well.
But it cannot for example reliably find the source of a function in case
the same function is used in two script files for example.
Therefore I think it would be beneficial to have better support for coverage
information in Vim, e.g. by annotating the SCRIPTs with better hit counts
already and/or adding information about the source location (filename and line)
to functions.
I know that this might not be trivial either given the dynamic nature of
Vimscript.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.