StarSpec is a unit testing framework for Starfall - A lua based programming language in WireMod, a Garry's Mod addon.
SF
= GMOD_INSTALL_LOCATION/data/starfall/
While I recommend installing StarSpec at SF/lib/
, it's ultimately your choice where you decide to install it.
cd SF
mkdir lib
cd lib
git clone https://github.com/Thource/star_spec
Please use this as a template for your project's tests:
--@include lib/star_spec/star_spec.lua
require("lib/star_spec//star_spec.lua")
-- Include all of the classes that we're going to be testing
--@includedir classes
util.dodir("classes")
spec(function()
-- Include the specs that we've written for our classes
--@includedir specs
util.dodir("specs")
end)
Included with StarSpec is an example project, please look at the example project to see how StarSpec can be used.
Coming soon