Fix readme files about unit test scenarios
This commit is contained in:
parent
a69ee6e0c1
commit
8136065f75
2 changed files with 8 additions and 5 deletions
|
@ -1 +1 @@
|
|||
This is place to put macros that are only usefull for running unit tests.
|
||||
This is place to put macros that are only useful for running unit tests.
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
This is place to put any scenarios used by C++ unit tests.
|
||||
This directory contains both the scenarios used by C++ unit tests and those which are
|
||||
WML unit tests.
|
||||
|
||||
It is good idea to reuse same scenario file as much as possible and just inject wml to that.
|
||||
Injection can be done creating config object with event code inside and then registering that
|
||||
For the C++ unit tests, it is recommended to reuse the same scenario file as much as possible
|
||||
and just inject WML into it.
|
||||
Injection can be done by adding a config object containing event code and then registering that
|
||||
manually for game_events.
|
||||
|
||||
It is also a good place to put scenarios which are WML unit tests.
|
||||
WML unit tests are self-contained scenario files to test a specific area of WML. They can be
|
||||
implemented with the GENERIC_UNIT_TEST macro.
|
||||
|
|
Loading…
Add table
Reference in a new issue