[hibernate-issues] [Hibernate-JIRA] Created: (ANN-753) Allow running tests against different databases by using a simple switch

Hardy Ferentschik (JIRA) noreply at atlassian.com
Mon Jun 16 06:54:33 EDT 2008


Allow running tests against different databases by using a simple switch
------------------------------------------------------------------------

                 Key: ANN-753
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-753
             Project: Hibernate Annotations
          Issue Type: Task
            Reporter: Hardy Ferentschik
            Assignee: Hardy Ferentschik
            Priority: Minor


Currently you have to edit hibernate.properties to be able to run the tests against a different database. The settings of this file should be externalized and filters should be used to filter appropriate settings according to a property, eg 'ant clean junit -Dtargetdb=mysql'.

To make this really useful one would also need a way within the test to skip it for a particular database. Some tests don't make sense against a certain target db. This might be a separate issue. Maybe one could switch to Junit 4 and add some custom annotation for enabling/disabling a test depending on the db.  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list