Skip to content

Commit

Permalink
Implement code coverage support
Browse files Browse the repository at this point in the history
  • Loading branch information
L0stSoul committed Jun 19, 2018
1 parent e917609 commit 2049425
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -303,7 +306,12 @@ nnoremap <silent><leader>; :Unite file_rec/async:! -buffer-name=files -start-ins
" Unite-grep
nnoremap <silent><leader>/ :Unite grep:. -no-start-insert -no-quit -keep-focus -wrap<CR>

"-------------------------
" 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
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -136,6 +138,9 @@ Smart and mighty autocompletion.
#### Integration with git &mdash;[Fugitive](https://github.com/tpope/vim-fugitive)
Provides full integration wit git.

#### Show Code coverage &mdash;[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 &mdash;[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

Expand Down

0 comments on commit 2049425

Please sign in to comment.