Forum: Ruby on Rails [ANN] rubytest.vim 0.9.0

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8853f712852b03ba6646b59b1723f44d?d=identicon&s=25 Flower Born (flowerborn)
on 2009-04-19 11:49
(Received via mailing list)
Hi list,

I'm pleased to announce the first release of rubytest, which is a
vim plugin aims to help you run ruby test (including vanilla test,
rspec, shoulda etc.) conveniently.

http://www.vim.org/scripts/script.php?script_id=2612

Installation
------------

Copy all files to your ~/.vim directory.

Usage
-----

After installation, hit <Leader>t will run the test under your cursor
if you are editing a ruby test file.

example:

$ cd <your rails/merb root>
$ vim test/unit/user_test.rb
(move cursor into a test case, press <Leader>t)

(<Leader> is mapping to '\' by default in vim)

You can customize the command which will be used to run the test case by
settting these options in your vimrc file:

  let g:rubytest_cmd_test = "ruby %p"
  let g:rubytest_cmd_testcase = "ruby %p -n '/%c/'"
  let g:rubytest_cmd_spec = "spec -f specdoc %p"
  let g:rubytest_cmd_example = "spec -f specdoc %p -e '%c'"

Default Key Bindings
--------------------

<Leader>t: run test case under cursor
<Leader>T: run all tests in file

I've only tested with tests in rails/merb project. Looking forward to
receiving your feedback.

Thanks,
Jan
This topic is locked and can not be replied to.