norman / telescope

A highly customizable test library for Lua that allows declarative tests with nested contexts.
http://norman.github.com/telescope/
160 stars 35 forks source link

Making telescope use LuaJIT to run specs #20

Closed dolzenko closed 12 years ago

dolzenko commented 12 years ago

I would like to know if there is an easy way to make telescope use LuaJIT when running specs/or if there is any 'best practice' to do so?

pflaquerre commented 12 years ago

Telescope itself is written in lua, so all you have to do is explicitly use luajit: luajit tsc my_spec.lua.

Alternatively, you can change the first line of tsc #!/usr/bin/env lua to #!/usr/bin/env luajit, assuming luajit is on your PATH.

dolzenko commented 12 years ago

Thanks, makes sense!

And big props for the software itself!