[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: xml-dev@l...
  • Date: Thu, 05 Jul 2001 10:41:05 -0700

xml unit test cases
">"  = Lars Marius Garshol
"> |" = David Brownell

> | Another testing framework to think about is Mauve.
> I've had a brief look at Mauve before, but came away thinking it was a
> collection of test cases for the Java core libraries and nothing more.
> Apparently I was too quick. What else does Mauve contain but a
> collection of test cases?

There's the harness in which those test cases are hang, which
is not specific to the "test java.*" subproblem.  I've not used it,
but anything adequate to test N variants of the standard Java
APIs is clearly able to do more than just "unit" testing.

> | 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.
> I've been using JUnit to create a test suite consisting of by now
> about 650 test cases and am not really very satisfied with it. One
> unmet wish is that it should be easy to collect test cases into
> hierarchical groups, and also to decide which groups to run and which
> to skip. I've had to build utilities on top of JUnit to be able to
> achieve this.

Unit testing != system testing != integration testing ... :)

I absolutely agree that a test harness that can't go beyond
"unit" testing isn't much help in any substantial system.

> A third problem is that with JUnit it seems tricky to reuse the same
> set of test cases for different implementations of an interface. We've
> worked around it by using our mechanism for dynamically generating
> test cases, but again the result was less than great.

That's something that any harness configuration mechanism should
support.  It might be easy to "roll your own" support there,
perhaps with something analagous to a system property that's
given as one input to the "run these tests on that" command.

- Dave


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.
First Name
Last Name
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.