quarkusio/quarkus

Use parametrised tests for Hibernate ORM/Reactive interoperability

开放

#51,207 创建于 2025年11月24日

 (12 条评论) (0 个反应) (0 位负责人)Java (2,464 个派生)batch import
area/hibernate-ormarea/hibernate-reactivegood first issuekind/enhancement

仓库指标

星标
 (12,967 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南