[Rspec-devel] test2rspec based on RubyToRuby/ParseTree/RubyInline
aslak hellesoy
aslak.hellesoy at gmail.com
Wed Jun 7 18:29:00 EDT 2006
Hi there,
The current test2rspec is based on pattern matching and it's very flaky.
I have experimented with a new translator based on RubyToRuby:
RubyToRuby (http://blog.zenspider.com/archives/2005/02/rubytoruby.html
and a successor - http://dark.fhtr.org/ruby2ruby.rb)
ParseTree - used by RubyToRuby (http://rubyforge.org/projects/parsetree/)
RubyInline - used by ParseTree (http://rubyforge.org/projects/rubyinline/)
All of this is MIT licenced (except RubyToRuby which doesn't appear to
have a licence - I suppose it's in the public domain)
I'm not 100% done yet, but it's looking promising.
RubyInline won't work on windows (afaik), so that's a drawback, but on
the flip side I think
that basing the translator on this stuff will result in much better
translations.
And they only have to be done once anyway.
Any objections if I check that in tomorrow and replace the old translator?
Aslak
More information about the Rspec-devel
mailing list