[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

regression test recommendations?

Per Bothner per at bothner.com
Wed Jan 17 19:21:32 PST 2007


  regression test recommendations?
James A. Robinson wrote:
> Any of you folks have recommendations on available XQuery regression
> test systems?  Or advice to just roll ones own?

I actually implemented 3 regression test systems for XQuery:
(All of these are in kawa-1.8.95.tar,gz, available from
http://www.gnu.org/software/kawa/ .)

(1) gnu/xquery/testsuite/TestMisc.java: A simple class containing
lots of inlined calls like:
     evalTest("let $x:=3+4 return $x", "7");

(2) gnu/xquery/testsuite/TestMisc.java: Reads an XML file containing
more extended tests, with both the actual test program and the
expected results in the same file as the "catalog".  This has the
advantage that everything is a self-contained file.  I used this
to test the various standard use-cases.

(3) gnu/xquery/testsuite/RunXQTS.java: As you might might gather,
a driver around the standard XQuery Test Suite.  Since any
implementor will want to check their implementation against W3C's
XQTS, it may be reasonable to use the same format and driver
for private tests, though I haven't yet done that.  One issue
is that XQTS puts everything into separate files, which means
you get a *lot* of small files.  It might be worthwhile enhancing
the driver so that it can run the testsuite from a compressed
.zip archive, though I haven't tried that.

To run the latter testsuite, I just do:
   java -Xmx100m gnu.xquery.testsuite.RunXQTS /home/bothner/Kawa/XQTS
where the /home/bothner/Kawa/XQTS is the expanded XQTS.

It runs the testsuite quite quickly: The entire testsuite (over
16,000 tests) takes about 1.5 minutes on my mid-range Dell E1405
laptop.
-- 
	--Per Bothner
http://x-query.com/mailman/listinfo/talk   http://per.bothner.com/


Purchase Stylus Studio Online Today!

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.
Email
First Name
Last Name
Company
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-2007 All Rights Reserved.