Kristian Waagan <[EMAIL PROTECTED]> writes:

> Daniel John Debrunner wrote:
>> I'd like to make progress faster towards a pure JUnit set of tests
>> for Derby but I believe the fact we need to setup the tests and the
>> JUnit utility classes to run under the harness slows down progress
>> as well as adding complications. An example of how it slows down is
>> that any change to a test or JUnit utility class requires that the
>> contributor runs the tests multiple ways to ensure no regressions.
>> Assuming we had a top-level JUnit suite that ran all the Junit tests
>> successfully (with the same configuration coverage as they are run
>> today in derbyall) then could we switch to a dual testing
>> environment until all the tests were converted to JUnit? This would
>> include removing all the JUnit tests from the old harness suite
>> files.
>> That is if one wanted to run all the tests one would have to run:
>>   derbyall with the old harness
>>   suites.All using JUnit test runners directly.
>> Is this an issue for people?
>
> Hi,
>
> For me this is not an issue. I might even be able to run the two in
> parallel by changing the port number for the JUnit run.
>
> I'm happy to see that there is activity on converting tests to JUnit.
> We still have a long way to go though, so keep up the good work!
>
>
>
> (BTW: I have some problems with the security manager, and if people
> have any ideas, I'd like to hear them;
> http://issues.apache.org/jira/browse/DERBY-1001)

Should it be possible to run junit tests with ALL the junit runners,
or just with junit.textui.TestRunner? 

With the current trunk I able to
run

org.apache.derbyTesting.functionTests.tests.jdbcapi._Suite

successfully with junit.textui.TestRunner (if I set
derby.system.home), but with 
junit.awtui.TestRunner or junit.swingui.TestRunner the first test
fails with 

java.lang.ExceptionInInitializerError
        at 
org.apache.derbyTesting.junit.TestConfiguration.defaultSecurityManagerSetup(TestConfiguration.java:667)
        at 
org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:73)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
        at junit.extensions.TestSetup.run(TestSetup.java:23)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
        at junit.extensions.TestSetup.run(TestSetup.java:23)
Caused by: java.lang.NullPointerException
        at 
org.apache.derbyTesting.junit.SecurityManagerSetup.determineClasspath(SecurityManagerSetup.java:218)
        at 
org.apache.derbyTesting.junit.SecurityManagerSetup.<clinit>(SecurityManagerSetup.java:56)
        ... 19 more

and the following tests fail with

java.lang.NoClassDefFoundError: Could not initialize class 
org.apache.derbyTesting.junit.SecurityManagerSetup
        at 
org.apache.derbyTesting.junit.TestConfiguration.defaultSecurityManagerSetup(TestConfiguration.java:667)
        at 
org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:73)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
        at junit.extensions.TestSetup.run(TestSetup.java:23)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
        at junit.extensions.TestSetup.run(TestSetup.java:23)

Should I create a JIRA for this?

-- 
dt

Reply via email to