nvim-coverage icon indicating copy to clipboard operation
nvim-coverage copied to clipboard

Better control of project root

Open eivindjahren opened this issue 2 years ago • 2 comments

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.

eivindjahren avatar Jun 27 '22 06:06 eivindjahren

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.

calvinchoy avatar Oct 29 '22 14:10 calvinchoy

Found the solution. Had to use ./ as the path

calvinchoy avatar Oct 29 '22 14:10 calvinchoy