[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: junit test... for xslt2?

Subject: Re: junit test... for xslt2?
From: Philip Fearon <pgfearo@xxxxxxxxxxxxxx>
Date: Sun, 7 Mar 2010 10:43:05 +0000
Re:  junit test... for xslt2?
On Sun, Mar 7, 2010 at 9:50 AM, Dave Pawson <davep@xxxxxxxxxxxxx> wrote:
> On 07/03/10 09:35, Philip Fearon wrote:
> Thanks, I'll take a look.
> the terminology has me frowning? 'requests'?
> Also, is the idea of testing an entire folder for your own usage?

Ah, yes - 'requests' stems from the way, in this multi-threaded app,
tests are submitted to a thread pool. If a thread hangs, the request
is still counted, but there is no output on which to judge failure or
success. The text logs show how long it took to pool the requests, as
well as the time it took to complete them all, so this was just for

This terminology is rather vague and that's mainly because this
application sits (perhaps uncomfortably) between two stools: 1) an
XSLT test harness, and 2) a light-weight XSLT publishing/verification
tool. I'm very open to adopting a more standard terminology if one
already exists or can be agreed. After working on a small
international XML data exchange standard for a few years I've learnt
never to get attached to names themselves, the short descriptions
though will be important.

> Also, is the idea of testing an entire folder for your own usage?
Not specifically for my own usage. I've always arranged my tests (not
strictly unit tests though) in a folder structure, with folders
arranged according to their broad purpose, otherwise test file naming
becomes an issue quite quickly and possibly others use the same
approach. Zip-files are also treated in the same way as folders, so
your test input could just as easily be ePub, OOXML or ODF documents.I
find its often useful to perform most tests at the same time, but
include/exclude file filter patterns can be joined to create a subset
and reused for subsequent testing.

Such folder usage, however, is probably more important for this tools
second purpose: light-weight XSLT publishing. For example, I use XSLT
to check my local XHTML website and update specific parts based on
rules immediately before deploying it, no other code apart from XSLT
is required.

Phil Fearon

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.