Hi all,

Here's a rockspec for Telescope 0.4.1. It includes minor updates:

* improve error messages on syntax errors
* report correct version on --help text
* when creating a custom assertion, allow the "message" to be a
function rather than just a string.

https://github.com/norman/telescope/raw/master/rockspecs/telescope-0.4.1-1.rockspec

For those not familiar with it, Telescope is a small test framework
that allows you to structure your tests in nested contexts and use
declarative test names, rather than the simple functions of a  *unit
library:

context("My library", function()
    test("should be version 0.0.1", function()
        assert_equal("0.0.1", my_library.version)
    end)
end)

You can see some more examples on the project README page here:

https://github.com/norman/telescope

Telescope offers a very simple API that clearly separates test
parsing/loading, test assertions, and test running/reporting. This
means that you can easily make your own test library on top of
Telescope to offer a different syntax, but still make use of
Telescope's assertions, runner, and reports. For an interesting recent
example of this check out Paul Bonser's "Calabash":

https://github.com/pib/calabash

Thanks!

Norman

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

Reply via email to