Duplicate
Details
Assignee
Laurel WilliamsLaurel WilliamsReporter
Laurel WilliamsLaurel WilliamsOriginal estimate
Time tracking
No time logged3d remainingComponents
Fix versions
Priority
Major
Details
Details
Assignee
Laurel Williams
Laurel WilliamsReporter
Laurel Williams
Laurel WilliamsOriginal estimate
Time tracking
No time logged3d remaining
Components
Fix versions
Priority
Created November 3, 2009 at 7:15 PM
Updated December 2, 2009 at 6:40 PM
Resolved December 2, 2009 at 6:40 PM
ColinClark said: I found your tests really difficult to debug, due to the strange way you've structured them. It looks like you committed a big refactoring to these tests back at r7673, and I'm not sure it was entirely for the best. By moving your test functions out into these "generateXyz" functions on a "pseudo-that" called "testingFunctions," you make it harder to set breakpoints in a specific test, rather than for the general case of all similar tests. It also makes readability more difficult. This feels to me like an attempt to remove repetitive code, but at the wrong level of abstraction. I really like how thorough all of these tests are, but I find it hard to quickly see the difference between utility code, setup code, and the test bodies.
At some point in the future, let's consider what it would take to split up these tests into smaller units based. That said, I don't think we want to invest the time in reworking these tests yet again before we get the Builder released. It's something you'll probably encounter yourself as you use Firebug to track down this issue, but something that can wait for a bit.