Ticket #415 (closed task: fixed)

Opened 4 years ago

Last modified 3 years ago

Script component testing framework

Reported by: Philip Owned by: Philip
Priority: Should Have Milestone:
Component: UI & Simulation Keywords:
Cc:

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

comment:1 Changed 3 years ago by Philip

  • Milestone changed from Unclassified to Simulation stage 3

comment:2 Changed 3 years ago by Philip

  • Status changed from new to closed
  • Resolution set to fixed

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 Changed 3 years ago by anonymous

  • Milestone Simulation stage 3 deleted

Milestone Simulation stage 3 deleted

Note: See TracTickets for help on using tickets.