quarkusio/quarkus

Cannot run integration tests in IDEs in clean workspace

Open

#48.273 geöffnet am 6. Juni 2025

Auf GitHub ansehen
 (7 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Java (2.464 Forks)batch import
area/testinggood first issue

Repository-Metriken

Stars
 (12.967 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 4h) (325 gemergte PRs in 30 T)

Beschreibung

Right-clicking and running an integration test in a clean project in any IDE (Eclipse, VS Code, IntelliJ) gives the following:

java.lang.IllegalStateException: Unable to locate the artifact metadata file created that must be created by Quarkus in order to run integration tests. Make sure this test is run after the Quarkus artifact is built from your build tool.
	at io.quarkus.test.junit.IntegrationTestUtil.readQuarkusArtifactProperties(IntegrationTestUtil.java:409)
	at io.quarkus.test.junit.QuarkusIntegrationTestExtension.ensureStarted(QuarkusIntegrationTestExtension.java:141)
	at io.quarkus.test.junit.QuarkusIntegrationTestExtension.beforeAll(QuarkusIntegrationTestExtension.java:127)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

The problem reproduces in 3.20, so it's not related to the test classloading rewrite. mvn package on the command-line fixes it.

I don't know if we want to do a code fix for this, since the error message is pretty clear.

Contributor Guide