db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Waagan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-2076) Rewrite junitTests/derbyNet/CompatibilityTest to conform to current JUnit usage
Date Tue, 20 Sep 2011 13:20:09 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Kristian Waagan updated DERBY-2076:

    Attachment: derby-2076-0a-modernized_compat_test_preview.diff

Attaching patch 0a, which is a preview of the work I'm doing on this issue.

This is just for the curious :) I'll write a proper comment tomorrow, listing various issues
with the compatibility test.

You can run this if you want to. I find it best to use the swingui TestRunner - there you
can see the structure of the suites. To apply the patch, do something like this:
mkdir java/testing/org/apache/derbyTesting/functionTests/tests/compatibility
svn add ava/testing/org/apache/derbyTesting/functionTests/tests/compatibility
svn copy java/testing/org/apache/derbyTesting/functionTests/tests/junitTests/compatibility/CompatibilitySuite.java
svn copy java/testing/org/apache/derbyTesting/functionTests/tests/junitTests/compatibility/JDBCDriverTest.java
patch -p0 < derby-2076-0a-modernized_compat_test_preview.diff

To run the test you have to specify derbyTesting.oldReleasePath, which should preferably point
to the Derby release JAR repos (https://svn.apache.org/repos/asf/db/derby/jars), and you have
to run off jars:
java -classpath derby_jars:junit.jar -DderbyTesting.oldReleasePath=release_jars_dir  -Dderby.tests.debug=true
 -Dderby.tests.trace=true junit.swingui.TestRunner org.apache.derbyTesting.functionTests.tests.compatibility._Suite

> Rewrite junitTests/derbyNet/CompatibilityTest to conform to current JUnit usage
> -------------------------------------------------------------------------------
>                 Key: DERBY-2076
>                 URL: https://issues.apache.org/jira/browse/DERBY-2076
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions:
>            Reporter: Andrew McIntyre
>            Assignee: Kristian Waagan
>            Priority: Minor
>         Attachments: derby-2076-0a-modernized_compat_test_preview.diff
> The test org.apache.derbyTesting.functionTests.tests.junitTests.DerbyNet.CompatibilityTest
has been failing in the nightlies because it needs to be run in the old test harness, and
for some reason the property which grants permission to read ${user.home}/junit.properties
is not being picked up properly in the old harness. 
> I am able to resolve the problem by granting permission to read ${user.home}/junit.properties
to all, but the test should be refactored so that it can run with the rest of the junit tests
without needing the old harness.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message