W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > October 2008

RE: XProc Minutes 2 October 2008 - Test suite

From: <Toman_Vojtech@emc.com>
Date: Wed, 8 Oct 2008 09:50:12 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870CECEA14@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-wg@w3.org>

> > Right now, we are not using the XProc test suite format, 
> but I think we
> > will be eventually (for, at least, we should be able to 
> test our XProc
> > processor against the "standard" test suite :). The only 
> problem with
> > that is that I will have to convert all our test data...
> 
> Do you have *some* test format? If not, how can you tell if the
> pipelines produce the right results?
> 

...well, no. We use simple JUnit test cases, nothing special. For each
test, we have a number of files on the filesystem: a pipeline, a set of
input documents
and a set of output documents. In the test, we then explicitly say which
pipeline we want to run, what documents to bind to its input ports, and
what documents we want to compare with the results on its output ports.
This (usually very simple) logic is expressed in Java. But I think it
should be rather straigtforward to translate this to the XProc test
suite format.

Regards,
Vojtech
Received on Wednesday, 8 October 2008 13:51:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 8 October 2008 13:51:08 GMT