Usenet.com

www.Usenet.com

Group Index

Rec Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: Unit testing and roguelikes



The Sheep schrieb:
Dnia 1 Dec 2003 19:23:55 -0800, Paul Miller napisal(a):

Has anyone here implemented unit tests for their roguelike game(s)?  A
quick google through this group turned up only one game (written in
Java), that used unit tests, although I suspect this is not something
that is going to be covered in a typical "announce" post.

What's a unit test?

It's a program module that automatically tests another program module.


I.e. if you have a module for file IO, you can write a unit test that calls the file IO routines, feeds data into them and checks if i.e. the read data is tha same as the writen data .. or whatever can be tested there.

There are framerworks to automatize execution and evalutaion of such tests. I.e. for Java there is JUnit (google for it).

IME unit test work best on low level modules. I'm not quite sure how to apply unit tests to a RL game, except for the basic modules i.e. level saving or FOV code ...

c.u.
Hajo




<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.