On Wed, Oct 13, 2010 at 03:44, steve donovan <[email protected]> wrote:
> On Tue, Oct 12, 2010 at 5:28 PM, Norman Clarke <[email protected]> wrote:
>> Here is a rockspec for the first "stable" release of Telescope, a
>> BDD-style test framework.
>
> Very cute - I like the 'create custom assertions' feature.

Thanks, Steve.

> Somewhat OT, I think this is a use case for a patched Lua. Internal
> testing does not need to use stock Lua, and having the short anonymous
> function syntax (|x| x*x is short for 'function(x) return x*x end')
> implemented by metalua and Francesco Abbate's GSL Shell would make
> writing tests easier on the fingers.

I think that would be wonderful. Telescope has a great deal of line
noise that makes it hard to type and ugly to read.

I actually finished coding this around a year ago, when I was just
starting to really get into Lua. Looking back, I think I was thinking
in Ruby and writing in Lua. Nowadays I tend to first try writing tests
in plain Lua, then Shake, and then use Telescope as a last resort -
precisely because the awkward syntax drives me crazy. :)

Last year after the Lua Workshop in Rio I had the privilege to hang
out with Fabio M and André C, and we spent a few hours roughing out
some additions to Shake to make it use Telescope's reporting features.
We had been planning on merging the two projects, so that you can
write tests in either Shake or Telescope's format - I'd still like to
do that, it's just a matter of time and priorities.

Regards,

Norman

_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to