[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: junit test... for xslt2?
On 08/03/10 10:06, Florent Georges wrote:
A couple of remarks here.
Not sure what I'd like to call it! For unit testing, I'd say one component has only a few responsibilities on the result it produces. It does not always define its whole output. Some parts are the responsibility of other components (like called functions or other template rules). And in unit testing, I think assertion expressions (what I think you mean by "you just need to execute XPaths against it") is really more convenient than comparing two entire trees.
Good example of a test 'group', each part being a simpler test (atomic test?) Another good example where you are concerned about text content (the value 200 is pretty essential), where in other cases you really don't care about content, but elements / attributes *must* be present or missing. regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|