项目作者: ruanyl

项目描述 :
code coverage vim plugin
高级语言: Vim script
项目地址: git://github.com/ruanyl/coverage.vim.git
创建时间: 2016-12-07T22:50:51Z
项目社区:https://github.com/ruanyl/coverage.vim

开源协议:

下载


Coverage.vim

For coc.nvim users, please take a look at coc-coverage

Greatly inspired by vim-gitgutter

A vim plugin which shows code coverage like wallabyjs. Supports istanbul json reporter format:

requires vim8 or neovim

coverage

Install

  1. Plug 'ruanyl/coverage.vim'

How it works

This plugin uses vim8 new feature timer_start() to read the <coverage-*>.json in an interval. Whenver the file changed, it will update the signs of current buffer.

The plugin awares of signs from other plugins, for example: syntastic, ale … But it will overwrite the signs of gitgutter.

Config

  1. " Specify the path to `coverage.json` file relative to your current working directory.
  2. let g:coverage_json_report_path = 'coverage/coverage.json'
  3. " Define the symbol display for covered lines
  4. let g:coverage_sign_covered = '⦿'
  5. " Define the interval time of updating the coverage lines
  6. let g:coverage_interval = 5000
  7. " Do not display signs on covered lines
  8. let g:coverage_show_covered = 0
  9. " Display signs on uncovered lines
  10. let g:coverage_show_uncovered = 1

If you found the project helpful, please give it a star :)

MIT License