forked from kyonshi/grenzland-mud
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:
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
|
||||
Reference in New Issue
Block a user