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 Wed, 27 Jun 2012 10:20:43 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-1a-initial.diff

Attaching patch 1a, which is the intial check-in of the new modernized compatibility test.

See the package.html for some description. It may be helpful to generate and read the Javadocs
too.
The actual tests, with some modifications, have been taken from the old compatibility test.
Most of the supporting code, i.e. spawning the server and the client and the combination generator,
is new.

The new version is lacking the ability to run with multiple JVM versions. That feature can
be added after the initial patch has been committed - given that people feel it is worth keeping.
I imagine that feature would only be used in the more comprehensive test suites, and not as
part of the MATS variant run in suites.All.

I intend to commit this shortly to allow for easier testing of the new test. I hope to include
the MATS variant of the test in suites.All after it has been sufficiently tested and remaining
issues have been addressed.
I do believe that committing  the current code is better than reviewing this large chunk of
code because it allows others to easily contribute by running the tests on their systems,
and because this will be opt-in. The current/old compatibility test will continue to run until
the community feel comfortable to do the switch.

The drawback of having two versions is that two versions have to be maintained, but there
are typically few modifications to the compatibility tests (too few?). I hope that over the
summer we have made enough progress to determine the final action, which will hopefully be
to delete the old test and start using new one exclusively.

Patch ready for review.
                
> 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, derby-2076-0b-modernized_compat_test_preview.diff,
derby-2076-1a-initial.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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message