This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
GraphQLTestAutoConfiguration enabled only for servlet type #867
Unanswered
maciejkopecpl
asked this question in
Q&A
Replies: 1 comment 1 reply
-
this bothers me as well, since I like writing integration tests, but servlet mode introduces problems to transaction management inside tests. Servlet and tests run in different threads, so rollback isn't possible. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey team,
Is there any particular reason why this configuration is enabled only for the servlet app type? I'm using the reactive app, and my tests worked fine for version 11.1.0, I just upgraded to 14.0.0 and I had to define
GraphQLTestTemplate
bean by myself.Code ref: https://github.com/graphql-java-kickstart/graphql-spring-boot/blob/v12.0.0/graphql-spring-boot-test-autoconfigure/src/main/java/com/graphql/spring/boot/test/GraphQLTestAutoConfiguration.java#L18
Here is one of my tests: https://github.com/maciejkopecpl/cms/blob/master/src/test/java/pl/maciejkopec/cms/e2e/ModuleIntegrationTest.java
Cheers,
Maciej
Beta Was this translation helpful? Give feedback.
All reactions