Ktor testing #1538
Unanswered
charlee-dev
asked this question in
Q&A
Ktor testing
#1538
Replies: 2 comments
-
Hello 👋 If you want to test your queries, you could also generate test client code and run them against your server. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'll share my solution. Hopefully, it may be useful for someone in the future. My server stack - Expedia GraphQL, Ktor, and Kmongo for serving MongoDB, and Koin for DI. Test class:
Test helper
Running Mongo locally for test. Requires import from kmongo:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's recommended approach for testing graphql ktor server?
Beta Was this translation helpful? Give feedback.
All reactions