PATCH: added new Test::Unit compiler plugin

Doug Kearns djkea2 at mugca.its.monash.edu.au
Thu Apr 1 20:09:15 EST 2004


This is a first cut at compiler plugin for Test::Unit that I've had lying
around for a long time - thought it might be an idea to commit it.

Regards,
Doug

Index: compiler/rubyunit.vim
===================================================================
RCS file: compiler/rubyunit.vim
diff -N compiler/rubyunit.vim
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ compiler/rubyunit.vim	1 Apr 2004 10:33:06 -0000
@@ -0,0 +1,38 @@
+" Vim compiler file
+" Language:	Test::Unit - Ruby Unit Testing Framework
+" Maintainer:	Doug Kearns <djkea2 at mugca.its.monash.edu.au>
+" Info:		$Id$
+" URL:		http://vim-ruby.sourceforge.net
+" Anon CVS:	See above site
+" Licence:	GPL (http://www.gnu.org)
+" Disclaimer:
+"    This program is distributed in the hope that it will be useful,
+"    but WITHOUT ANY WARRANTY; without even the implied warranty of
+"    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+"    GNU General Public License for more details.
+" ----------------------------------------------------------------------------
+
+if exists("current_compiler")
+  finish
+endif
+let current_compiler = "rubyunit"
+
+let s:cpo_save = &cpo
+set cpo-=C
+
+setlocal makeprg=ruby
+
+setlocal errorformat=\%Etest%[%^\ ]%#(%[%^\ ]%#)\ [%f:%l]:,
+                     \%Z%m%\\%.,
+                     \%C%m%\\%.,
+                     \%-GLoaded%.%#,
+                     \%-GStarted%.%#,
+                     \%-G%[EF%.]%.%#,
+                     \%-GFinished\ in%.%#,
+                     \%-G\ %\\+%\\d%\\+)\ Failure:,
+                     \%-G\ %\\+%\\d%\\+)\ Error:
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
+
+" vim: nowrap tabstop=8 ff=unix


More information about the vim-ruby-devel mailing list