TorqueScript Unit Testing?
by MrPhil (Philip Ludington) · in Torque Game Builder · 08/09/2005 (7:48 pm) · 4 replies
Has anyone tried creating a unit testing framework for TorqueScript? I value using Test Driven Development and the unit testing framework NUnit at my day job a lot. I can't imagine trying to develop without it so I feel like I've lost something important when working in TorqueScript.
About the author
My name is Philip Ludington, I'm a professional programmer by day and I dabble in game development by night. Learn more about my projects at www.MrPhilGames.com
#2
I think one of the things that I haven't quite wrapped my head around is the "class" to organize the tests around. When I write unit tests in NUnit each TestFixture is aimed at a class. That type of encapsulation or organizing unit does jump out at me with TorqueScript yet. It is a very important part of unit testing because you need to be able to control the state of the thing you are testing or it just doesn't work.
I'll keep ya posted, but don't expect miracles because I'm also updating my website to Drupal, writing a plug-in for TorqueDev, doing T2D tutorials and going to the beach on weekends.
Busy Busy!!!
08/16/2005 (12:47 pm)
Cool. I'm definitely going to pursue this. I started a similar thread over at Torque SDK Private Forums >> Discussion. Only Ben Garney has responded with "It wouldn't be too hard (esp. since you can extend the runtime as needed to support features) and it would be incredibly useful, I agree." So that's encouraging.I think one of the things that I haven't quite wrapped my head around is the "class" to organize the tests around. When I write unit tests in NUnit each TestFixture is aimed at a class. That type of encapsulation or organizing unit does jump out at me with TorqueScript yet. It is a very important part of unit testing because you need to be able to control the state of the thing you are testing or it just doesn't work.
I'll keep ya posted, but don't expect miracles because I'm also updating my website to Drupal, writing a plug-in for TorqueDev, doing T2D tutorials and going to the beach on weekends.
Busy Busy!!!
#4
07/20/2008 (1:02 pm)
Thanks for the post, that looks pretty cool.
Torque Owner Bryan Edds