A unit testing framework for GSC.
npm install gscunit

A testing library for GSC, as well as a CLI to run CoD4 binary and run unit tests.

npm install -g gscunit
`
`
Options:
--version Show version number [boolean]
-l, --location The CoD4 path location [string]
-t, --target The CoD4 binary target name [string]
-a, --args The CoD4 arguments [string]
-p, --profile The gscunit profile path [string]
--help Show help [boolean]
`Example
`c
#include libs\gscunit\_main;
#include libs\gscunit\_utils;runTests()
{
gscunitEnv();
suite("Example");
it(::test_HelloWorld, "HelloWorld");
summarize(true);
}
test_HelloWorld()
{
EXPECT_EQ(1 + 1, 2);
}
`
More advanced examples on the gsclib library.Profile
gscunit settings can be set with a profile file (.ini)
`ini
[CLI]
location=
target=
args=
``