[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-408) Improve execution speed of functional tests

Hardy Ferentschik (JIRA) noreply at atlassian.com
Sat Jan 9 14:56:31 EST 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35167#action_35167 ] 

Hardy Ferentschik commented on HSEARCH-408:
-------------------------------------------

Changed the build so that it runs now in _forkMode=once_.
The tests which were still causing problems where {{LazyCollectionsUpdatingTest}}, {{EmbeddedTest}} and {{NestedEmbeddedTest}}. Debugging the tests it showed that the collections/associations would not get persisted into the database at persist time. When the data was consequently getting retrieved it was empty and assertions would fail. 
It turned out that using consistently a cascade mode of {{CascadeType.ALL}} fixes this problem and the tests can be run in _forkMode=once_.
I am still at loss why this is the case and why this tests in _forkMode=perTest_ would pass. There might still be an underlying problem. I decided to commit the changes though since they reduce the build time considerably.

> Improve execution speed of functional tests
> -------------------------------------------
>
>                 Key: HSEARCH-408
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-408
>             Project: Hibernate Search
>          Issue Type: Task
>            Reporter: Sanne Grinovero
>            Assignee: Sanne Grinovero
>             Fix For: 3.2.0.Beta2
>
>


-- 
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