PATCH: rubyunit compiler improvements

Doug Kearns dougkearns at gmail.com
Thu Sep 22 11:20:23 EDT 2005


I've just replaced the garbage in CVS with something that smells
marginally better.

The previous version was only temporary but, well... Anyway, this new
one seems to produce much the same output as the GUI test runners.

Regards,
Doug


Index: compiler/rubyunit.vim
===================================================================
RCS file: /var/cvs/vim-ruby/vim-ruby/compiler/rubyunit.vim,v
retrieving revision 1.7
diff -u -r1.7 rubyunit.vim
--- compiler/rubyunit.vim	10 Sep 2005 14:51:02 -0000	1.7
+++ compiler/rubyunit.vim	22 Sep 2005 14:49:24 -0000
@@ -24,18 +24,16 @@
 let s:cpo_save = &cpo
 set cpo-=C
 
-CompilerSet makeprg=ruby
+CompilerSet makeprg=testrb
 
-CompilerSet errorformat=\%Etest%[%^\ ]%#(%[%^\ ]%#)\ [%f:%l]:,
-			\%E\ %\\+%f:%l:%m,
-			\%Z%m%\\%.,
-			\%C%m%\\%.,
-			\%-GLoaded%.%#,
-			\%-GStarted%.%#,
-			\%-G%[EF%.]%.%#,
-			\%-GFinished\ in%.%#,
-			\%-G\ %\\+%\\d%\\+)\ Failure:,
-			\%-G\ %\\+%\\d%\\+)\ Error:
+CompilerSet errorformat=\%W\ %\\+%\\d%\\+)\ Failure:,
+			\%C%m\ [%f:%l]:,
+		        \%E\ %\\+%\\d%\\+)\ Error:,
+			\%C%m:,
+			\%C\ \ \ \ %f:%l:%.%#,
+			\%C%m,
+			\%Z\ %#,
+			\%-G%.%#
 
 let &cpo = s:cpo_save
 unlet s:cpo_save


More information about the vim-ruby-devel mailing list