mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-01 18:40:16 +01:00
Add munit for unit testing.
Main method extracted to separate file to make it easier to test the _rest_ of the code. munit is added as a submodule by running `cd src; git submodule add https://github.com/nemequ/munit.git` . Unit testing has so far only been tested on ubuntu.
This commit is contained in:
parent
455e3a06ea
commit
eb8e200a31
11 changed files with 280 additions and 1 deletions
26
src/test/testrunner.h
Normal file
26
src/test/testrunner.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#ifndef TESTRUNNER_H
|
||||
#define TESTRUNNER_H
|
||||
|
||||
#include "../conf.h"
|
||||
#include "../sysdep.h"
|
||||
#include "../structs.h"
|
||||
#include "../utils.h"
|
||||
#include "../comm.h"
|
||||
#include "../db.h"
|
||||
#include "../handler.h"
|
||||
#include "../screen.h"
|
||||
#include "../interpreter.h"
|
||||
#include "../spells.h"
|
||||
#include "../dg_scripts.h"
|
||||
#include "../act.h"
|
||||
#include "../class.h"
|
||||
#include "../fight.h"
|
||||
#include "../quest.h"
|
||||
#include "../mud_event.h"
|
||||
#include "../munit/munit.h"
|
||||
|
||||
|
||||
#define UNIT_TEST(test_name) MunitResult (test_name)(const MunitParameter params[], void* data)
|
||||
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue