in reply to use Test; and output
Personally, I'd use something like XML::Parser or HTML::Parser vs. modifying my tests every time. Then, you just look for the relevant text nodes and go from there.
But, that solution sucks rocks. The better solution is to use templates or output decorators. Don't worry about how it's being outputted. Then, the output decorators can be tested for general completeness instead of specific correctness. (Or, even better, you can use a CPAN module and fuhgeddaboudit!)
|
|---|