QA-Automation-Starter / qa-automation

QA automation utilities and project generator
https://qa-automation-starter.aherscu.dev
Other
6 stars 4 forks source link

parallel test modes are not supported by unitils #210

Closed adrian-herscu closed 11 months ago

adrian-herscu commented 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.

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.

adrian-herscu commented 11 months ago

see #211 -- removes unitils altogether