Broken Rule Vs Failed Test

Broken Rule Vs Failed Test

Old forum URL: forums.lhotka.net/forums/t/1447.aspx


Jav posted on Wednesday, October 11, 2006

Standard Testing recommendations tend to include every Property of an object. Some properties are set by the users, others are the responsibility of the programmer.  Since code generation creates rules for every property of an object, my standard ritual has been to remove the rules that have nothing to do with user input - and yet I may neglect to initialize them just as easily, thereby breaking the "Test" but not the "Rule".

A second element is the Debug Vs Release versions.  In Debug, I ought to see a red flag when I as a programmer fail to set a property correctly, but there is no reason for my end user to see it when running the Release version.

In other words, instead of creating large bunches of Test batteries checking Properties, how about keeping all of the auto-generated tests intact, but separating them into Debug and non-Debug types?

Is anyone doing something similar?  I don't believe this is something that the Framework needs to necessarily implement.

Jav

Copyright (c) Marimer LLC