documentation:rtsprogrammingguidelines
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:rtsprogrammingguidelines [2013/06/06 07:42] – created mhgamework | documentation:rtsprogrammingguidelines [2024/08/26 13:25] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== RTS Testcase 1 Programming guidelines ====== | ====== RTS Testcase 1 Programming guidelines ====== | ||
- | In short | + | In short the guidelines are. |
- | All game logic is written | + | * One sandbox test combining all features, implemented |
+ | * Unit tests for IoC based components | ||
+ | * No Unit tests for simulators, only use them for the sandbox test. | ||
+ | * Simulator hard to test or to big? Convert to component and unit test! | ||
- | Next there is the actual ' | + | ===== Detailed explanation ===== |
- | Note: is is allowed to make more than 1 big test, but the reason of creating these extra tests should not be for testing features, but for cross cutting concerns like: performance, | ||
- | This bigtest should not be considered a unit test (it isnt a unit test), but more like a sandbox environment. | ||
- | Also: found a way to define when something should be in the simulators and when it should be written using IoC. If you wrote a unit test, it should be IoC (and pls do). | ||
+ | All game logic is written using decent 'mh responsibility driven design', | ||
+ | |||
+ | |||
+ | Next there is the actual big ' | ||
+ | |||
+ | |||
+ | Note: is is allowed to make more than 1 sandbox test, but the reason of creating these extra tests should not be for testing features, but for cross cutting concerns like: performance, | ||
+ | |||
+ | |||
+ | When should something be in the simulators, and when should something be in the [[: | ||
documentation/rtsprogrammingguidelines.1370504531.txt.gz · Last modified: 2024/08/26 13:57 (external edit)