ViM plug-in to visualize your code coverage in real time line-by-line.

README.md 1.5KB

Umbrella

Runs unit tests and code coverage within the project.

Introduction

There seems to be a plethora of ways to run unit tests and provide code coverage. It is fine to have a pretty print out showing what areas need more eyes on them but we can do better. By providing quicker feedback the aim is to minimize errors before committing as well as maximizing our testable code base.

Installation

Using pathogen.vim

    cd ~/.vim/bundle
    git clone git://github.com/revolvingcow/vim-umbrella.git

Restart vim and then:

    :Helptags

Once help tags have been generated, you can view the manual with

    :help umbrella

-

Using vundle

Append the plugin to the list of existing bundles:

    Bundle "revolvingcow/vim-umbrella"

Then quit (:q) and go back in to vim and run :BundleInstall

How it works

    :Umbrella
    :UmbrellaRefresh
    :UmbrellaClear
    nnoremap    <F7>   :<C-U>Umbrella<CR>
    ...

License

Umbrella is licensed under the same terms as Vim itself (see :help license).

Thanks

Many thanks go to syntastic and makeshift. Both of these provided a great template to extend on.