mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-27 01:24:08 +01:00
Refactor: fixtures in its own files.
Added readme for creating tests. Found and fixed interesting bugs in destroy_db when there is no world. renamed the testfile to testrunner to make it clear it is actually running the texts. Also, made testrunner more focused on the actual running of the tests. Added debug target to test makefile.
This commit is contained in:
parent
9399b68f26
commit
c8fc70bf43
11 changed files with 318 additions and 181 deletions
|
|
@ -13,5 +13,9 @@ Read more in the doc/ folder
|
|||
|
||||
## To run the tests
|
||||
|
||||
1. clone the munit library into src/munit. It is registered as a submodule in git `git submodule init`
|
||||
1. clone the munit library into src/munit. It is registered as a submodule in git
|
||||
|
||||
`git submodule init && git submodule update`
|
||||
|
||||
2. install the cmocka-library: `sudo apt install libcmocka-dev`
|
||||
3. `./config.status && cd src && make test`
|
||||
Loading…
Add table
Add a link
Reference in a new issue