Game Development Community

Unit Testing and Torque X

by Thorsten Schmidt · in Torque X 3D · 03/24/2009 (5:17 am) · 2 replies

At the moment I am playing around with NUnit and Torque X to do some unit testing.

I'm already able to load the .txscene file from the 3D starter game, create objects of templates which are defined in the .txscene file, register them to the object database and do some simple tests with them like checking the position.

My next whish is to do is some "graphical" unit testing (even if this is not the real intention of unit testing).
That means start the game by an unit test, register some objects, check several properties, move them around etc.

But every time I try to launch the game I get an assert error that for example lightmap.png of the terrain is not found.

Has anybody tried to do something similar or has some experience with unit testing and Torque X?


#1
04/13/2009 (3:02 pm)
I also faced this error , there was a path issue , as what ever path i provide in the LightMapFilename property, engine always looked in the path mentioned in TexturePathSubstitution. So by placing the lightmap.png in the substitution folder(where all the textures are) , the file was found.
#2
04/13/2009 (10:54 pm)
Great. Thank you, I will give this a try this evening.