#415 closed task (fixed)
Script component testing framework
Reported by: | Philip Taylor | Owned by: | Philip Taylor |
---|---|---|---|
Priority: | Should Have | Milestone: | |
Component: | UI & Simulation | Keywords: | |
Cc: | Patch: |
Description
There needs to be an easy way to do unit testing of script components.
The tests themselves should be written as scripts. Each component should be tested in isolation, with all engine functionality and other components probably implemented in the script as mock objects, so that the test cases don't require complex scene setups.
It should be integrated with the current CxxTest system, but maybe it would also be useful to be able to run the tests as part of the normal executable, so they can be used by non-C++ programmers and integrated with the debugger (#410).
Change History (3)
comment:1 by , 14 years ago
Milestone: | Unclassified → Simulation stage 3 |
---|
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Done in 7482ed1764e4. (The tests only run inside CxxTest now, but it'll be easy to use them in a different context by just defining Engine.TS_FAIL differently.)