Closed adrian-herscu closed 11 months ago
Description Unitils-enabled test classes, namely those inheriting from UnitilsScenarioTest, cannot run in parallel in any mode if the database/dbunitmodules are enabled in unitils.properties.
UnitilsScenarioTest
database
dbunit
unitils.properties
Reproduction
Given
unitils.module.database.enabled=true unitils.module.dbunit.enabled=true
are effectively set
When running two UnitilsScenarioTests via some testng.xml
Then the following exception is thrown, causing intermittent failures:
org.unitils.core.UnitilsException: Error while performing database update: create table "APP"."DBMAINTAIN_SCRIPTS" ( FILE_NAME VARCHAR(150), VERSION VARCHAR(25), FILE_LAST_MODIFIED_AT BIGINT, CHECKSUM VARCHAR(50), EXECUTED_AT VARCHAR(20), SUCCEEDED BIGINT ) at org.unitils.database.DatabaseModule$DatabaseTestListener.beforeTestSetUp(DatabaseModule.java:477) at org.unitils.core.Unitils$UnitilsTestListener.beforeTestSetUp(Unitils.java:273)
Expected behavior
Should allow running in all possible parallel modes.
see #211 -- removes unitils altogether
Description Unitils-enabled test classes, namely those inheriting from
UnitilsScenarioTest
, cannot run in parallel in any mode if thedatabase
/dbunit
modules are enabled inunitils.properties
.Reproduction
Given
are effectively set
When running two
UnitilsScenarioTest
s via some testng.xmlThen the following exception is thrown, causing intermittent failures:
Expected behavior
Should allow running in all possible parallel modes.