[Scummvm-devel] Thought about unit tests (automatic game testing)

Eugene Sandulenko sev at scummvm.org
Sat Feb 14 23:45:44 CET 2009


On Sat, 14 Feb 2009 17:25:46 +0100
RafaƂ Rzepecki <divided.mind at gmail.com> wrote:
 
> This would make it possible to create such test functions as (it
> remains open to debate on whether they should be C++-based, or some
> script language (I'd be more for the latter)):
> moveMouse(framenum, position);
> clickMouse(framenum, position, button);
> pressKey(framenum, key);
Current semi-working approach is to basically record all events. This
approach lets us to not touch engine code at all, but use some hooks in
OSystem.

> compareImage(framenum, image);
This is also considered.

I created relevant task in our Open Task list. I hope that someone will
look further into this. Andrew Kurushin (aka h00ligan aka ajax16384)
already implemented current approach but it does not work as expected.

But unit tests is completely different beast, and at least some
entities in some engines potentially could be covered by them.


Eugene




More information about the Scummvm-devel mailing list