5 | | * self-tests are separate Cpp files that contain only the test code. (splitting is necessary so that cxxtestgen doesn't have to parse the entire codebase) |
6 | | * they are stored in a tests subdir of the source directory (simplifies finding the relevant test file for purposes of editing it) |
7 | | * a workspace generated by premake enumerates all test files, uses custom build step to generate the actual test code, and then links it all into a separate program that runs all tests. |
8 | | Note: separating test code from the main PS executable has several advantages as [http://www.wildfiregames.com/forum/index.php?showtopic=10018&pid=171251&st=0&#entry171251 documented] |
9 | | * only running certain tests will be possible (shortens iteration time when only editing one module). |
| 5 | * self-tests are separate Cpp files that contain only the test code. (splitting is necessary so that cxxtestgen doesn't have to parse the entire codebase) |
| 6 | * they are stored in a tests subdir of the source directory (simplifies finding the relevant test file for purposes of editing it) |
| 7 | * a workspace generated by premake enumerates all test files, uses custom build step to generate the actual test code, and then links it all into a separate program that runs all tests. Note: separating test code from the main PS executable has several advantages as [http://www.wildfiregames.com/forum/index.php?showtopic=10018&pid=171251&st=0&#entry171251 documented] |
| 8 | * only running certain tests will be possible (shortens iteration time when only editing one module). |