db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-4638) Expose names of top-level test suites for easier scripting
Date Wed, 05 May 2010 09:23:02 GMT

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

Knut Anders Hatlen updated DERBY-4638:
--------------------------------------

    Attachment: list-tests.diff

The attached patch makes it possible to retrieve the list of test suites either by calling
the method AllPackages.getTopLevelSuiteNames(), which returns an array of strings with class
names, or by running AllPackages from the command line:

$ java -cp classes:tools/java/junit.jar org.apache.derbyTesting.functionTests.suites.AllPackages
org.apache.derbyTesting.functionTests.tests.derbynet._Suite
org.apache.derbyTesting.functionTests.tests.lang._Suite
org.apache.derbyTesting.functionTests.tests.jdbcapi._Suite
org.apache.derbyTesting.functionTests.tests.store._Suite
org.apache.derbyTesting.functionTests.tests.tools._Suite
org.apache.derbyTesting.functionTests.tests.engine._Suite
org.apache.derbyTesting.functionTests.tests.demo._Suite
org.apache.derbyTesting.functionTests.tests.memory._Suite
org.apache.derbyTesting.functionTests.tests.memorydb._Suite
org.apache.derbyTesting.functionTests.tests.i18n._Suite
org.apache.derbyTesting.functionTests.tests.multi.StressMultiTest
org.apache.derbyTesting.functionTests.tests.jdbc4._Suite
org.apache.derbyTesting.functionTests.tests.management._Suite
org.apache.derbyTesting.unitTests.junit._Suite
org.apache.derbyTesting.functionTests.tests.upgradeTests._Suite
org.apache.derbyTesting.functionTests.suites.EncryptionSuite
org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationSuite

The patch makes the following changes:

suites/AllPackages.java:

- Added public methods getTopLevelSuiteNames() and main() to extract the list of test suites

suites/All.java:

- Moved adding of EncryptionSuite and ReplicationSuite to AllPackages so that they also are
included in the list of test suites

tests/replicationTests/ReplicationSuite.java:

- Made suite() check vmSupportsJDBC3() before adding test cases. Before, this was done in
suites.All.suite(), but when the adding of ReplicationSuite was moved from All to AllPackages,
it was also changed to be consistent with the other test suites, which do these checks locally
in their suite() methods.

> Expose names of top-level test suites for easier scripting
> ----------------------------------------------------------
>
>                 Key: DERBY-4638
>                 URL: https://issues.apache.org/jira/browse/DERBY-4638
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.7.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: list-tests.diff
>
>
> I sometimes run each of the top-level JUnit test suites individually so that they can
be run in parallel and complete faster. It would be useful if AllPackages could expose the
list of suites to allow scripting of such tasks without needing to change the script when
a new suite is added.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message