xsl-list
[Top] [All Lists]

[xsl] [ANN] XTS: XSLT 2.0 Unit Testing stylesheets

2007-01-23 12:31:10
  Hi

  I put a set of stylesheets to process test suites for XSLT
2.0 on http://www.fgeorges.org/xslt/xslt-unit/.  Here is the
description from this page:

    XTS provides a unit testing framework for XSLT.  It allows
    you to write test suites related to styelsheet
    modules.  Basically, you can test any XSLT 2.0 sequence
    constructor like this:

    <t:tests>
      <t:title>hello-world()</t:title>
      <t:test>
        <t:expect select="'Hello, world!'"/>
        <xsl:sequence select="hw:hello-world()"/>
      </t:test>
    </t:tests>

    That will evaluate all the elements after the t:* as a
    sequence constructor (here the xsl:sequence), and then
    compare its result to the expected result (the result of an
    XPath expression, a piece of XML or an expected error).  You
    can even write your own predicates to compare the result or
    choose one of the available functions (as the eq operator or
    the standard deep-equal() function).

    When the test suite is run, an XML report is generated,
    containing all the related information (test performed,
    result of the evaluation...)  This report can then be
    formatted as HTML.

    Comments are very welcome at drkm-lib-xslt AT lists.sf.net
    (a mailing-list that doesn't require to subscribe in order
    to post).

  It is still a beta version, but I think it could already
be usefull, and I would like to have comments from XSL List,
if any.  The tarball is there:

    http://www.fgeorges.org/xslt/xslt-unit/xslt-unit.tar.gz

  To run the sample, just go to the directory where you
unpacked the archive, and:

   # saxon test/hello-world.xts src/test-suite-gen.xsl      \
       > test/test-hello-world.xsl
   # saxon test/hello-world.xsl test/test-hello-world.xsl   \
       > test/test-hello-world.xml
   # saxon test/test-hello-world.xml src/report-to-html.xsl \
       > test/test-hello-world.html

  The stylesheets are tested only with Saxon 8.8, but I'd
like to have time to test more version of Saxon and Gexslt
(the Colin's XSLT 2.0 processor) in the near future (Gexslt
is almost supported).

  Comments are very welcome on drkm-lib-xslt AT lists.sf.net.

  Regards,

--drkm























        

        
                
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] [ANN] XTS: XSLT 2.0 Unit Testing stylesheets, Florent Georges <=