I've been working with a document repository using XQuery (via Java and .NET interfaces) and was wondering if anyone has any recommendations for unit testing XQuery modules?
A:
Here is a quick DIY type solution for this problem:
Poor man's unit testing with XQuery (dead link).
This approach seems to have been embraced and extended for the tests of the xprocxq project.
Other tools exist, for example XTC.
Oliver Hallam
2009-02-10 23:01:12
Blog is gone, link is broken
mbrevoort
2010-04-14 04:34:16
Have updated answer to reflect this
Oliver Hallam
2010-04-15 12:20:05
A:
This link may spruce your development. This is just an idea but you can develope and enhance more on this with various unit-test case design ideas.
since Xml is a king in meta-data world its quite easy to design and run.
design a Test-Case Xml by having all details capture
- test-data ( input & expected result )
- test-case id
- test-case local methods
invoke dynamically based on the details.
kadalamittai
2010-08-05 15:44:06