mirror of
https://github.com/tbamud/tbamud.git
synced 2026-04-30 04:41:51 +02:00
ac94839eb5542148d43141612818b5731a195fe8
Introduced new system for unit tests based on the Unity framework. Added tests for some of the simple functions in four different files.
Files for tbaMUD.
Unit Tests
tbaMUD ships with a C unit-test suite located in the tests/ directory.
The suite uses the Unity test
framework (vendored under tests/vendor/unity/).
Quick start
./configure
cd tests && make test
make test builds each test binary, runs it, and writes JUnit XML results to
tests/test-results/. A summary is printed to the terminal:
[PASS] test_utils
[PASS] test_random
[PASS] test_interpreter
[PASS] test_class
CI
The GitHub Actions workflow (.github/workflows/build.yml) runs make test
on every push and pull request against master and publishes a formatted
report via the dorny/test-reporter action.
See doc/testing.md for full details on adding new tests and understanding the test infrastructure.
Description
Languages
C
73%
PLSQL
22.8%
Jupyter Notebook
2.3%
CMake
0.6%
DIGITAL Command Language
0.3%
Other
0.9%