You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Kristian Waagan (JIRA)" <ji...@apache.org> on 2011/09/20 15:20:09 UTC

[jira] [Updated] (DERBY-2076) Rewrite junitTests/derbyNet/CompatibilityTest to conform to current JUnit usage

     [ 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 java/testing/org/apache/derbyTesting/functionTests/tests/compatibility/AbstractCompatibilityTest.java
svn copy java/testing/org/apache/derbyTesting/functionTests/tests/junitTests/compatibility/JDBCDriverTest.java java/testing/org/apache/derbyTesting/functionTests/tests/compatibility/
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: 10.3.1.4
>            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