[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Shake 1.0 Released
- From: Mike Schmitz <mschmitz@...>
- Date: Fri, 21 Dec 2007 08:25:44 -0800
Leo Razoumov wrote:
> On 12/18/07, Andre Carregal <carregal@fabricadigital.com.br> wrote:
>> Shake is a simple test engine for Lua that assumes that tests only use
>> standard assert() and print() calls:
>> http://shake.luaforge.net/
>
> Nice tool, indeed.
>
> Unfortunately, in direct defiance of its own documentation shake-1.0
> ignores the file passed on a command name
>
> sh$ shake mytest.lua
>
> will run the default "test.lua" file. Is it a bug??
>
> --Leo--
This fixes the bug:
@@ -36,9 +36,9 @@
f(run)
return true
end
- f, errmsg = io.open(user_test)
+ f, errmsg = io.open(filename)
if f then
- run:test(user_test, title)
+ run:test(filename, title)
return true
end
end