Googled for a Xml Dom open source library that ships with unit tests, but could not find any. Are there any dom libraries, java or .net that have unit tests?
+1
A:
Apache Xerces certainly includes a bunch of tests; look in the SVN repository. I expect that other libraries do as well. (I cannot imagine how you could develop an XML DOM implementation without some kind of unit / regression test suite.)
Perhaps you are looking in the wrong place for unit tests, or your criteria for what constitutes a "unit test" is too restrictive.
Stephen C
2010-06-20 02:21:25
they don't seem to be using traditional unit testing libraries like JUnit.
Dan
2010-06-20 04:58:36
they probably don't think that traditional unit testing would work for them.
Stephen C
2010-06-20 05:13:28
you are right, I was looking at source code distributions, and it does not contain tests, but code in the repository does contain test and in dom4j for example they use testng.
Dan
2010-06-20 05:44:43
A:
I'm not entirely sure whether by "DOM" you mean "pure W3C DOM" or DOM-like libraries in general, but XOM has very complete unit test coverage, based on JUnit.
Holger Hoffstätte
2010-06-20 11:00:49