snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

@QuarkusTestResource stopped being started from custom annotation #360

Closed snowdrop-bot closed 3 years ago

snowdrop-bot commented 3 years ago

Describe the bug

When I create an annotation (@MyTestAnnotation in repo code that reproduces this) for defining common @QuarkusTest and QuarkusTestResource annotations and use it to create tests, it will not launch the Quarkus Test Resources since version 1.13.1.Final, and so the test will fail.

Expected behavior

Quarkus Test Resources should be launched like in 1.11.7.Final, 1.12.2.Final and 1.13.0.Final and tests should pass.

Actual behavior

Quarkus Test Resources are not launched since 1.13.1.Final and tests fail.

To Reproduce

Clone code from https://github.com/MarcoMartins86/test_annotation_issue Docker is needed.

Steps to reproduce the behavior:

  1. In a terminal cd old_version and run ./mvnw clean install -> Tests will pass.
  2. In a terminal cd new_version and run ./mvnw clean install -> Tests will fail.

Environment (please complete the following information):

Output of uname -a or ver

Darwin PT-320323-MBP16 20.2.0 Darwin Kernel Version 20.2.0: Wed Dec 2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64 x86_64

Output of java -version

java version "11.0.9" 2020-10-20 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.9+7-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.9+7-LTS, mixed mode)

Quarkus version or git rev

1.13.1.Final and onwards

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d) Maven home: /Users/marco.martins/.m2/wrapper/dists/apache-maven-3.8.1-bin/2l5mhf2pq2clrde7f7qp1rdt5m/apache-maven-3.8.1 Java version: 11.0.9, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-11.0.9.jdk/Contents/Home Default locale: en_PT, platform encoding: UTF-8 OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"


https://github.com/quarkusio/quarkus/issues/17930


$upstream:17930$