heya,

I heard some talk here from PyDev team that they employ unit testing, i wanted to hear some experiences on that topic.

The problem now is that i got quite a bunch of code piling up, and refactoring parts of that is nearly impossible as with python you can't really just compile and be sure that at least method calls and variables all point to valid data. this applies to most self.method(), self.variable, functionArgument.methodOrVariable, etc.

in some places, i went with assertion calls in the code to make sure that at least parameters being passed in are of a valid type, but what i really want - and don't really even imagine how to do that in maya environment - is using automatic testing.

the problem is, most of my code is "create or modify something in the scene" rigging utilities, e.g., create ik/fk/elbowik setup, calculate corrective shape, calculate blendshape inbetweens for smooth interpolation. the only way i see to test them is to actually load sample scene, execute the code, then SOMEHOW test validity of the created data.

Anyway, the short version the question: what kind of automated testing you guys have used, how that works, and what are cons and pros?

--
http://groups.google.com/group/python_inside_maya

Reply via email to