Closed kikito closed 14 years ago
Duh. There was a comma missing on the definition of the second test. Please disregard this issue
No worries, glad you were able to get it working.
Yeah, the synax for creating tests is unfortunately a little confusing, it's one of the things I like least about telescope. I have plans to integrate Telescope and Shake to provide simpler ways to specify tests, but recently I haven't had much time to do it.
I don't mind having to write assert_true(x) instead of assert(x==true) really.
Having to write function() ... end all the time just takes some effort to get adjusted to. The other thing that took me some time was making sure that my lib was loaded before the tests were launched. A section about that on the doc would probably help others (I ended up using rake so I could get the "current directory" easily)
As far as I know, both problems aren't telescope's; they happen because of limitations in Lua - it has no procs and it doesn't recognize directories natively.
Telescope is awesome. I think it is the best one out there for Lua testing. I'm not only producing lots of tests, but having fun doing it.
Very well done, sir!
Thanks for the kind words, much appreciated! I'll look into the current directory issue. IIRC it's easy to do that using lua-filesystem, but I didn't want to introduce the dependency.
Hi!
I'd like to use your library in order to make some testing on my lib, MiddleClass. Unfortunately I'm getting the error you see above.
Steps for reproducing:
Installed with luarocks:
I then tried the following command:
The test folder only has one file, called MiddleClass_test.lua:
This is in Ubuntu 10.04.