You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by John Mc Quillan <jo...@openjawtech.com> on 2002/09/05 14:33:36 UTC

Building the Tests

Hi,

I've downloaded the version 1.0 and wanted to run the tests. When I try to
build the tests, I get errors as the various tests try to import various
packages that do not appear to exist in any of the jars, such as:

 "org.dbxml.core.corba.db.*"
 "org.dbxml.core.corba.db.Collection"
 "org.dbxml.core.corba.db.DatabaseManager"
 "org.dbxml.core.corba.db.EncodeBuffer"

Looking at the naming convention, it looks like these tests might be
intended for the older dbxml product and haven't been updated for the new
name. Given that the distributed tests don't build, where can I get a copy
of the tests that were actually used to test the "Xindice" release?

Thanks

John Mc Quillan


Re: Building the Tests

Posted by Vladimir Bossicard <vl...@adnovum.com>.
> I've been thinking about that.  We need a bunch of general test cases, for
> testing, and bench marking purposes....  anyone have any ideas, or
> inspirations?

What I would do:

1. the tests have the same priority as the code source.  If a test
doesn't compile, the code is considered as broken.  Move the build
mechanism of the tests into the main build file (or call it from the
main build file)
2. set up the environment: 'test' target in the main build file that
runs the AllTests class (for unit tests)
3. set up the tests directory (something along the lines):

     tests
       +- unit
       |    +- src
       |    +- config
       |    +- ...
       +- integration
       |    +- ...
       +- performance
       |    +- ...
       +- ...

4. try to reuse the already coded tests
5. be pragmatic and start by writing a test when a bug is found (at the
top level).  Write additional tests for stepped through classes (while
debugging) is necessary.
6. if you don't understand something, try to write a test.  You'll learn
how it works and you have n+1 tests

Hard work, I know

-Vladimir

-- 
+---------------------------------------------------------------------+
 Vladimir Bossicard              mailto:vladimir.bossicard@adnovum.com 
 Software Engineer                             MS Computer Science ETH

 AdNovum Software Inc. San Mateo, CA 94404    phone: +1 (650) 525 9322 
 1400 Fashion Island Boulevard, Suite 309     fax:   +1 (650) 525 9324 
+---------------------------------------------------------------------+
 AdNovum Informatik AG http://www.adnovum.ch  phone: +41 (1)  272 6111 
 Roentgenstrasse 22, CH-8005 Zuerich          fax:   +41 (1)  272 6312 
+---------------------------------------------------------------------+

Re: Building the Tests

Posted by Kimbro Staken <ks...@xmldatabases.org>.
I started working on a new set of tests and Kurt has put together a set 
of tests for the XML-RPC API. I was working on some tests for the 
Filers. The code for all these tests is in java/tests replacing the 
CORBA tests that used to be there. They need a LOT of work.

On Thursday, September 5, 2002, at 11:49 AM, Fernando Padilla wrote:

>
>
> I've been thinking about that.  We need a bunch of general test cases, 
> for
> testing, and bench marking purposes....  anyone have any ideas, or
> inspirations?
>
>
>
> I would love to have something that would exercise every piece of code,
> for automated testing, but also explicitly define the "performance
> envelope".
>
> Add/Remove
> Listing
> XPath
> XUpdate
> Small XML
> Large XML
> large number of documents
> large number of nodes ( low number of documents )
> etc, etc, etc,
>
>
>
> On Thu, 5 Sep 2002, Vladimir Bossicard wrote:
>
>>> Given that the distributed tests don't build, where can I get a copy
>>> of the tests that were actually used to test the "Xindice" release?
>>
>> Looks like we need some effort towards testing.  I'm not (yet) very
>> comfortable with the Xindice code base but quite comfortable with 
>> JUnit
>> so if you need my help...
>>
>> I'll study the XIndice architecture this week and will try to come up
>> with a strategy.
>>
>> -Vladimir
>>
>>
>
>
Kimbro Staken
Java and XML Software, Consulting and Writing 
http://www.xmldatabases.org/
Apache Xindice native XML database http://xml.apache.org/xindice
XML:DB Initiative http://www.xmldb.org


Re: Building the Tests

Posted by Fernando Padilla <fe...@interdimensions.com>.

I've been thinking about that.  We need a bunch of general test cases, for 
testing, and bench marking purposes....  anyone have any ideas, or 
inspirations?



I would love to have something that would exercise every piece of code,
for automated testing, but also explicitly define the "performance
envelope".

Add/Remove
Listing
XPath
XUpdate
Small XML
Large XML
large number of documents
large number of nodes ( low number of documents )
etc, etc, etc,



On Thu, 5 Sep 2002, Vladimir Bossicard wrote:

> > Given that the distributed tests don't build, where can I get a copy
> > of the tests that were actually used to test the "Xindice" release?
> 
> Looks like we need some effort towards testing.  I'm not (yet) very
> comfortable with the Xindice code base but quite comfortable with JUnit
> so if you need my help...
> 
> I'll study the XIndice architecture this week and will try to come up
> with a strategy.
> 
> -Vladimir
> 
> 


Re: Building the Tests

Posted by Vladimir Bossicard <vl...@adnovum.com>.
> Given that the distributed tests don't build, where can I get a copy
> of the tests that were actually used to test the "Xindice" release?

Looks like we need some effort towards testing.  I'm not (yet) very
comfortable with the Xindice code base but quite comfortable with JUnit
so if you need my help...

I'll study the XIndice architecture this week and will try to come up
with a strategy.

-Vladimir

-- 
+---------------------------------------------------------------------+
 Vladimir Bossicard              mailto:vladimir.bossicard@adnovum.com 
 Software Engineer                             MS Computer Science ETH

 AdNovum Software Inc. San Mateo, CA 94404    phone: +1 (650) 525 9322 
 1400 Fashion Island Boulevard, Suite 309     fax:   +1 (650) 525 9324 
+---------------------------------------------------------------------+
 AdNovum Informatik AG http://www.adnovum.ch  phone: +41 (1)  272 6111 
 Roentgenstrasse 22, CH-8005 Zuerich          fax:   +41 (1)  272 6312 
+---------------------------------------------------------------------+