[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML and unit testing

  • From: David Brownell <david-b@p...>
  • To: "Simon St.Laurent" <simonstl@s...>, xml-dev@l...
  • Date: Wed, 04 Jul 2001 18:57:07 -0700

xml unit
Another testing framework to think about is Mauve.

I'm most familiar with separate tests, plugging into some sort of testing
framework or harness.  The harness automates running lots of tests,
setting each one up and collecting results (pass/fail/expected/...) as
well as (important!) organizing unexpected results for analysis.  What
you want is a quick report that says highlights expected and unexpected
results; when you get to even a few hundred tests, it's impossible to be
looking at each individual test on any regular basis.  (Sadly, negative
tests tend to always need that attention ... positive tests are easier,
but applications break just as badly when the APIs fail in the wrong
way as when they fail at the wrong time!)

API specs need to be written to be testable.  Some of the "APIs" I
see floating around are basically "not testable" because of size, and
exposing too many internals.  Once a spec is testable, then a
surprisingly large number of tests need to be written.

I think the deep/shallow copy sorts of issues you mentioned are each
going to need individual tests.


> I doubt I'm the only person dealing with these kinds of issues on
> xml-dev, but I still wonder if anyone's really explored how unit testing
> and XML fit together.  Validation is something that comes naturally to
> XML, but it's a different kind of testing than the finer-grained object
> unit testing approach I'm looking for.

There's also "regression testing", which you can think of as unit testing
that's maintained in sync with the software so that you can know updates
aren't going to break things.

- Dave



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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.