nvim-coverage
nvim-coverage copied to clipboard
Better control of project root
vim-test
has some functionality that seemingly always sets up the correct project root:
https://github.com/vim-test/vim-test/blob/6517577d8b75c97ce0a916f44942877beb37d72a/plugin/test.vim#L60
It would be great if there was some variable that one could use to tweak the path where CoverageLoad
expects to find the coverage_file
.
How is this done now? The plugin can't find the lcov file in my javascript project. It is inside the root directory of the project in tests/coverage/lcov.info.
I tried the following:
lang = { javascript = {coverage_file = "tests/coverage/lcov.info"}}
But still can't find it.
Found the solution. Had to use ./ as the path