From 204942580904b2d3b2bf51aa4c4145948ee07728 Mon Sep 17 00:00:00 2001 From: "Denis.Payas" Date: Tue, 19 Jun 2018 10:57:20 +0900 Subject: [PATCH] Implement code coverage support --- .vimrc | 10 +++++++++- README.md | 5 +++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 34310ad..76608c8 100644 --- a/.vimrc +++ b/.vimrc @@ -107,6 +107,9 @@ NeoBundle 'scrooloose/nerdtree' " Very useful NeoBundle 'tomtom/tcomment_vim' +" Show code coverage in vim +NeoBundle 'L0stsoul/coverage.vim' + " Best git wrapper for vim " But with my workflow, i really rarely use it " just Gdiff and Gblame sometimes @@ -303,7 +306,12 @@ nnoremap ; :Unite file_rec/async:! -buffer-name=files -start-ins " Unite-grep nnoremap / :Unite grep:. -no-start-insert -no-quit -keep-focus -wrap - +"------------------------- +" coverage +" +let g:coverage_json_report_pathes = ['.coverage/coverage-final.json', 'coverage/coverage-final.json'] +let g:coverage_sign_covered = '⦿' +let g:coverage_show_covered = 1 "------------------------- " NERDTree diff --git a/README.md b/README.md index 8b4a1de..0be1756 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,11 @@ ### Features * Only one file, you don't need to run any installation script. +* Integration with Typescript/Javascript * Integration with Git. * Integration with grep/ack. * Automatic syntax and codestyle checks. +* Show code coverage if available. * Smart autocomplete. * Tweeks for easier navigation. * Snippets. @@ -136,6 +138,9 @@ Smart and mighty autocompletion. #### Integration with git — [Fugitive](https://github.com/tpope/vim-fugitive) Provides full integration wit git. +#### Show Code coverage — [Forked version of Coverage.vim](https://github.com/Musinux/coverage.vim) +If you have code coverage report for you project located in '.coverage/coverage-final.json' or 'coverage/coverage-final.json' the covered lines would be highlighted. + #### Advanced typescript integration — [YouCompleteMe](https://github.com/Valloric/YouCompleteMe) && [Typesript compiler](https://github.com/Microsoft/TypeScript) Provides advanced javascript features - like contextaware typescript autocompletion, immediately show type errors and semantic errors, adwanced navigation ability etc