[
https://jira.jboss.org/jira/browse/JBPM-1417?page=com.atlassian.jira.plug...
]
Guillaume Porcher commented on JBPM-1417:
-----------------------------------------
We decided to:
- use a configuration based on a resource instead of based on package name. This way tests
in different packages can reuse the same environment factory.
- put all tests that use the same environment factory in a test suite, and wrap this suite
in a TestSetup. the test setup will create the environment factory before running the test
suite and close the environment factory after the test suite has been run. Inside the test
suite, the database is only cleaned.
optimize database clean up inbetween tests
------------------------------------------
Key: JBPM-1417
URL:
https://jira.jboss.org/jira/browse/JBPM-1417
Project: JBoss jBPM
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: PVM
Reporter: Tom Baeyens
Assignee: Guillaume Porcher
Priority: Critical
ideally we should get to the following situation:
* each package has its own configuration and its own session factory
* all tests with the same session factory should reuse the session factory as much as
possible to prevent unnecessary parsing and DB schema creation
* parts of the test suite that use the same session factory should run sequentially
* in between tests of the same part, the database should be cleaned (delete from
<table>;) for all tables
* inbetween parts, the db schema should be dropped and the new schema should be created
This should all work in junit test suite and from mvn command line
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira