Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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 Philip Taylor, 14 years ago

Milestone: UnclassifiedSimulation stage 3

comment:2 by Philip Taylor, 14 years ago

Resolution: fixed
Status: newclosed

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.)

comment:3 by (none), 14 years ago

Milestone: Simulation stage 3

Milestone Simulation stage 3 deleted

Note: See TracTickets for help on using tickets.