db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David W. Van Couvering" <David.Vancouver...@Sun.COM>
Subject Re: [jira] Updated: (DERBY-85) NPE when creating a trigger on a table and default schema doesn't exist.
Date Tue, 22 Nov 2005 19:30:43 GMT
Hi, Dyre, my responses inline.

Dyre.Tjeldvoll@Sun.COM wrote:
> "David W. Van Couvering" <David.Vancouvering@Sun.COM> writes:
> 
> 
>>Hi, Dyre.  It is fairly easy to integrate with the test harness.
>>
>>- Place your test under tests/junitTests.  Create a new subdirectory 
>>(lang is most likely correct) if it seems appropriate.
>>
>>- Have your test extend 
>>org.apache.derbyTesting.functionTests.util.DerbyJUnitTest
>>
> 
> Thanks David. Rick also mentioned this in
>  http://article.gmane.org/gmane.comp.apache.db.derby.devel/10429/match=derbyjunittest
> 
> 
>>- Make sure it has a main() routine, which runs the unit test.  See 
>>junitTests.compatibility.CompatibilitySuite for an example
> 
> 
> This I didn't know. Is it documented anywhere? And why does it need
> that? Couldn't the harness just start it with junit.textui.TestRunner?
> 

I don't know if it's documented anywhere.  If it isn't, it would be 
great if someone took the initiative to do so.

Yes, I suppose it could use TestRunner directly, but that's not what the 
harness does today, it only works with main routines.  Are you 
suggesting that be changed?

> Should it be possible to run CompatibilitySuite with
> junit.swingui.TestRunner? It does not work for me. I get an NPE...

Got me on that one. Rick?

> 
> 
>>- All public methods with the pattern testXXX() will automatically be run
>>
>>- Add your test to a test suite (e.g. derbylang)
> 
> 
> Will that not make it part of derbyall? Do we really want all
> bugfix-regression-unit tests to be run in derbyall?
> 

Well, that's your choice, it seems to me in general bugfix unit tests 
should be part of some kind of regression test, and as far as I know 
derbyall is all we have.

Mime
View raw message