XQuery/XUnit Testing

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Motivation[edit | edit source]

You want to understand what XML-centered unit testing is and how you can use it to make your software more reliable.

Background[edit | edit source]

We live in a constantly changing world. Each of the tools that we used may be constantly changing and the underlying libraries that these tools use may also be changing. Some people say that the only software that does not change is software that is never used.

In order to deal with these ever changing conditions we need to be able to continually upgrade our dependencies and then have the confidence that our applications will work. The heart of this testing is to develop a fine-grained set of tests that can be automatically rerun each time you create new versions of your application.

XUnit The role of XML standards[edit | edit source]

If each unit tests generates a standardized XML we can load the test results into unit testing frameworks such as Jenkins.


References[edit | edit source]

XUnit XML Schema https://gist.github.com/jzelenkov/959290