-
Improvement
-
Resolution: Fixed
-
Major
-
4.2.0
-
None
-
None
-
4.3 RC2
Tests which uses Hsqldb and Derby declars in their datasource.xml file a folder, such as 'tmp/hsqldb' or 'tmp/derby' or 'tmp/other'.
It does not respect the concept of tests encapsulation (RUNTIME-2962). It can theorically causes some concurrency tests to access the same file resources and lead to errors.
How I propose to do it:
- change CocoonTestCase#variableValues(), and add a variable named for instance 'randomStr' which generates a random string
- search 'jdbc:derby' and 'jdbc:hsqldb' in all *.xml files. All resulting datasources*.xml files are concerned
- change 'jdbc:derby:tmp/derby;create=true' into 'jdbc:derby:tmp/derby-${randomStr};create=true'
- change 'jdbc:derby:tmp/other;create=true' into 'jdbc:derby:tmp/other-${randomStr};create=true'
- change 'jdbc:hsqldb:tmp/hsqldb' into jdbc:hsqldb:tmp/hsqldb-${randomStr}'
- Est référencé par
-
RUNTIME-3419 [tests] Drop start scripts are useless
- Closed
- Référence
-
RUNTIME-2962 Tests encapsulation
- Closed