quarkusio/quarkus

Use parametrised tests for Hibernate ORM/Reactive interoperability

オープン

#51,207 opened on 2025/11/24

 (12 件のコメント) (0 件のリアクション) (0 人の担当者)Java (2,464 件のフォーク)batch import
area/hibernate-ormarea/hibernate-reactivegood first issuekind/enhancement

Repository metrics

Stars
 (12,967 個のスター)
PR merge metrics
 (平均マージ 6d 4h) (30d で 325 merged PRs)

説明

Description

The discussion in https://github.com/quarkusio/quarkus/pull/51159 highlighted that users combine Hibernate ORM and Hibernate Reactive in different ways. For example, users may:

  • Use both blocking and reactive access within the same persistence unit
  • Use separate persistence units for blocking and reactive
  • Rely on default persistence units only, or mixed with named
  • Encounter negative scenarios, such as misspelled datasource or PU names

The current compatibility test suite (io.quarkus.hibernate.reactive.compatibility) encodes these scenarios in a denormalized way, which makes it difficult to understand the complete coverage and has confusing test names such as ORMReactiveCompatbilityDifferentNamedDataSourceNamedPersistenceUnitBothUnitTest. As a result, certain edge cases may already be untested.

Refactoring the suite to use parameterized tests would make the matrix of supported combinations explicit and easier to reason about.

To be done after https://github.com/quarkusio/quarkus/issues/51206

Implementation ideas

No response

コントリビューターガイド