Subject: Re: [xsl] ANN: 'Testing XSLT' training course PDF available From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Fri, 14 Dec 2007 14:04:55 +0000 |
On 14/12/2007, Michael Kay <mike@xxxxxxxxxxxx> wrote: > or if you prefer you can compare the output with expected results using > deep-equal(). The problem with deep-equal() is that if the expected result is hand-crafted then it's really sensitive to insignificant changes in the output markup. If the expected result is auto-generated, then how do you generate it without reusing the code that you're testing... Functions are easy to test, testing the output from templates markup is harder, as you often need the entire input file. My current recommended approach is to validate the output where possible, and generate tests off of the input. If you're generating HTML use Selenium or Canoo. If you're generating XML then generate XPaths or XSLT. -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] ANN: 'Testing XSLT' train, Mukul Gandhi | Thread | RE: [xsl] ANN: 'Testing XSLT' train, Michael Kay |
Re: [xsl] ANN: 'Testing XSLT' train, Mukul Gandhi | Date | RE: [xsl] ANN: 'Testing XSLT' train, Michael Kay |
Month |