RE: XProc Minutes 2 October 2008 - Test suite

> > 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 UTC