PATCH: rubyunit compiler improvements

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

PATCH: rubyunit compiler improvements

Doug Kearns
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
_______________________________________________
vim-ruby-devel mailing list
[hidden email]
http://rubyforge.org/mailman/listinfo/vim-ruby-devel
Reply | Threaded
Open this post in threaded view
|

Re: PATCH: rubyunit compiler improvements

Doug Kearns
On Fri, Sep 23, 2005 at 01:20:23AM +1000, Doug Kearns wrote:
> 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.

I've just remembered a request of Sam's, from the beginning of time, for
the standard Ruby compiler efm to be included in the Test::Unit one to
pick up the syntax errors and similar that require churns out from
Test::Unit. I'll have a look at that for the next release...

Regards,
Doug
_______________________________________________
vim-ruby-devel mailing list
[hidden email]
http://rubyforge.org/mailman/listinfo/vim-ruby-devel