-
Describe the bug My team and I write a project on Kotlin, using Quarkus as the main framework, and Gradle as the main build system. We have an application that we are currently covering with tests. The problem arises when we write REST-http tests to our EndPoints. The tests work out correctly, but only when we run them, with the application running. But if we turn off the application and put the @QuakusTest annotation, which, according to the documentation, should run the application itself before running the tests, an exception occurs: "Connection refused: no further information Although the application itself is running. We understand that requests should be sent to http://localhost:8081/mapins but it doesn't work. We get such response: "GraphQL Schema not generated. Make sure you have a GraphQL Endpoint. Go to https://quarkus.io/guides/microprofile-graphql to learn how". When we exclude the path from requests for autoconfiguration we get the same result as in the case when we send requests to http://localhost:8081/ - responses are just empty. We have already tried using quarkus.http.test-port but result are the same... Maybe the problem is that our application is multimodule and needed to be started from concrete module and @QuarkusTest uses some kind of default command? This is a link (https://github.com/Bazalii/Interactive-map) to our small test project on github, on which we tested the work of a real project. Output of java -version Quarkus version or git rev Build tool (ie. output of mvnw --version or gradlew --version) Additional information Error when trying to run tests without an enabled application on a standard port: Error when trying to run tests without the application enabled on port 8080: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 22 replies
-
/cc @evanchooly, @geoand |
Beta Was this translation helpful? Give feedback.
-
Hi, Isn't this a duplicate of #28448? |
Beta Was this translation helpful? Give feedback.
-
To reiterate, I'll just say that @Sgitario is there anything more you would like to add here? |
Beta Was this translation helpful? Give feedback.
To reiterate, I'll just say that
@QuarkusTest
always starts the Quarkus application and also configured RestAssured with the base URL of the application.@Sgitario is there anything more you would like to add here?