EditorSelfTest class
#include <Jazz2/Editor/EditorSelfTest.h>
Self-test of the level editor, run by the /editor-selftest [directory] command-line switch.
Tests of the parts of the editor that need no game data run first: the document and its commands, the files, the images, the event catalog, the tools driven through a host without the shown level, and more. With /editor-selftest --unit only those run (see RunUnit()), so no converted game is needed. Then every level in the directory (Cache/Episodes by default) is loaded into a LevelDocument and:
- exported again, which has to give the same file — or, for a level written by another tool, a file that reads back to the same level
- saved with editor data, which has to survive being loaded again and be dropped by the export
- changed by a random sequence of edit commands, which, undone, have to give the original level back, and redone, the changed one
Only in debug builds.
Public static functions
Constructors, destructors, conversion operators
- EditorSelfTest() deleted