1.1.3 • Published 8 months ago

gscunit v1.1.3

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
8 months ago

gscunit

CodeFactor License

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

npm.io

Instructions

Install gsclib and it's pre-requisites and copy the libs directory to your mod folder.

Command Line Interface

The CLI can be installed with NPM.

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

#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)

[CLI]
location=
target=
args=

Download

Contributors:

Note: If you would like to contribute to this repository, feel free to send a pull request, and I will review your code. Also feel free to post about any problems that may arise in the issues section of the repository.

1.1.3

8 months ago

1.1.2

3 years ago

1.1.1

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.29

3 years ago

1.0.5

3 years ago

1.0.1

3 years ago