ruanyl / coverage.vim Goto Github PK
View Code? Open in Web Editor NEWcode coverage vim plugin
code coverage vim plugin
I'm on a MacBook Pro with 2.8 GHz Intel Core i7 16GB RAM and an SSD.
When I invoke coverage#process_buffer()
vim locks up for a few seconds. Makes it unusable with a 5000ms interval, so I just bind it to a key instead.
Strangely I can't find any resource utilization spike while the pause is in effect. Istanbul reports under 1,000 lines of code and my coverage/coverage-final.json
is only 44K.
I'm using tmux and neovim.
Is this a known issue?
Thanks!
Hello,
I get this error on NVIM 0.2.0-dev (Build type: RelWithDebInfo) which must have timers implemented:
Error detected while processing function coverage#start:
line 2:
E492: Not an editor command: timer_stop(s:timer)
Some hint?
For some reason, it is putting the icon next to any new lines I add, even if they aren't covered. I'm putting brand new functions in a file and never calling those functions. After jest --coverage
runs, the plugin puts a green icon next to the lines in that function.
I also checked out that file and the s
key for that file said 0.
"/file/path.js": {
"path": "/file/path.js",
"statementMap": {
...
"203":{"start":{"line":389,"column":14},"end":{"line":389,"column":15}}
...
}
}
"s": {
...
"203":0,
...
}
I'd like the ability to toggle code coverage on and off. I've tried the following but unable to make this work:
autocmd FileType typescriptreact noremap <leader>gc :call ToggleCoverage()<return>
function! ToggleCoverage() abort
if g:coverage_enabled
let g:coverage_enabled = 0
let g:coverage_show_covered = 0
let g:coverage_show_uncovered = 0
else
let g:coverage_enabled = 1
let g:coverage_show_covered = 1
let g:coverage_show_uncovered = 1
endif
call coverage#start()
endfunction
let g:coverage_json_report_path = 'coverage/coverage-final.json'
let g:coverage_enabled = 0
let g:coverage_show_covered = 0
let g:coverage_show_uncovered = 0
I thought maybe :Coverage
would do the toggle but it only starts it but doesn't stop it.
Any help would be appreciated. Hopefully this isn't a feature request.
Do not update signs if:
coverage.json
is not changed.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.