Sounds like a Big Can of Worms™ to me. I would simply enforce that all changes be committed to a CVS system so that in case a designer breaks the interface you can roll back. Also, you have two webservers ... one in-house development server and a live production server. All changes are made to the devel server and nothing is rolled out until it has been tested and is correct.

Also, i think that writing test cases of expected HTML output is a waste of time as well.* Hell, is it even practical? I mean, i envision a case where a designer needs to reposition the data. Are you going to require that (s)he get a back-end coder to change the test suite just so the template will check out? Better to test that data is correct and let the designer put it where ever they need. And if they screw up, you simply back out an older revision from CVS.

CVS and a seperate development server are what we use here at work. Sure, a test suite that ensures modifications won't break would be nice, but the time it takes to develop and keep it up to date surely is not worth the time you will have to invest.

jeffa

* unless i'm writing tests for DBIx::XHTML_Table ...
L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

In reply to Re: Testing Template, or should I write a diff for TT templates? by jeffa
in thread Testing Template, or should I write a diff for TT templates? by EvdB

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.