Sha256: 5b139b040b3c1f275a57f08d5a072b67d346d682164aa80d1754bf94e2dbed37

Contents?: true

Size: 1.44 KB

Versions: 24

Compression:

Stored size: 1.44 KB

Contents

<tt>rcov.vim</tt> allows you to run unit tests from vim and enter quickfix mode in
order to jump to uncovered code introduced since the last run.

== Installation
Copy <tt>rcov.vim</tt> to the appropriate "compiler" directory (typically
<tt>$HOME/.vim/compiler</tt>).

== Usage

=== Setting the reference point

+rcov+'s <tt>--text-coverage-diff</tt> mode compares the current coverage status against
the saved one. It therefore needs that information to be recorded
before you write new code (typically right after you perform a commit) in
order to have something to compare against.

You can save the current status with the <tt>--save</tt> option.
If you're running +rcov+ from Rake, you can do something like
  rake rcov_units RCOVOPTS="-T --save --rails"
in order to take the current status as the reference point.

=== Finding new uncovered code

Type the following in command mode while editing your program:
   :compiler rcov

rcov.vim assumes +rcov+ can be invoked with a rake task (see 
readme_for_rake[link:files/README_rake.html] for
information on how to create it). 

You can then execute +rcov+ and enter quickfix mode by typing

   :make <taskname>

where taskname is the +rcov+ task you want to use; if you didn't override the
default name in the Rakefile, just
  
   :make rcov

will do.

vim will then enter quickfix mode, allowing you to jump to the areas that were
not covered since the last time you saved the coverage data.

--------
# vim: ft=text :

Version data entries

24 entries across 24 versions & 6 rubygems

Version Path
jruby-rcov-0.8.2.1-java doc/readme_for_vim
jruby-rcov-0.8.2.2-java doc/readme_for_vim
jruby-rcov-0.8.2.3-java doc/readme_for_vim
jruby-rcov-0.8.2.4-java doc/readme_for_vim
mchung-rcov-0.8.3.3 doc/readme_for_vim
relevance-rcov-0.8.2.1 doc/readme_for_vim
relevance-rcov-0.8.3.0 doc/readme_for_vim
relevance-rcov-0.8.3.1 doc/readme_for_vim
relevance-rcov-0.8.3.2 doc/readme_for_vim
relevance-rcov-0.8.3.3 doc/readme_for_vim
relevance-rcov-0.8.3.4 doc/readme_for_vim
relevance-rcov-0.8.3.5 doc/readme_for_vim
relevance-rcov-0.8.3.6 doc/readme_for_vim
relevance-rcov-0.8.3.8 doc/readme_for_vim
relevance-rcov-0.8.3.9 doc/readme_for_vim
rsanheim-rcov-0.8.1.5.4 readme_for_vim
spicycode-rcov-0.8.1.3.0 readme_for_vim
spicycode-rcov-0.8.1.5.0 readme_for_vim
spicycode-rcov-0.8.1.5.5 readme_for_vim
spicycode-rcov-0.8.1.5.6 readme_for_vim