Coder Social home page Coder Social logo

coverage.vim's Introduction

Hey, I'm Yulong ๐Ÿ‘‹

coverage.vim's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

coverage.vim's Issues

Slow!

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!

timer_stop - Not an editor command

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?

Putting icon on uncovered lines

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,
  ...
}

Ability to toggle coverage on or off

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.