- a rich command line program (the
- textual descriptions of examples and groups (spec files use [YAML])
- flexible and customizable reporting (formatters)
- extensible expectation language (matchers)
luarocks install specl
Or from the rockspec inside the release tarball:
luarocks make specl-?-1.rockspec
To install current git master from GitHub (for testing):
luarocks install \ https://raw.githubusercontent.com/gvvaughan/specl/master/specl-git-1.rockspec
The dependencies are listed in the dependencies entry of the rockspec.
Specl includes comprehensive documentation.
Bug reports and code contributions
Please make bug reports and suggestions GitHub Issues. Pull requests are especially appreciated.
But first, please check that your issue has not already been reported by someone else, and that it is not already fixed by master in preparation for the next release (see Installation section above for how to temporarily install master with LuaRocks).
There is no strict coding style, but please bear in mind the following points when proposing changes:
Follow existing code. There are a lot of useful patterns and avoided traps there.
3-character indentation using SPACES in Lua sources: It makes rogue TABs easier to see, and lines up nicely with 'fi' and 'end' keywords.
Simple strings are easiest to type using single-quote delimiters, saving double-quotes for where a string contains apostrophes.
Save horizontal space by only using SPACEs where the parser requires them.
Use vertical space to separate out compound statements to help the coverage reports discover untested lines.
Prefer explicit string function calls over object methods, to mitigate issues with monkey-patching in caller environments.