You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to have this example with Kotest, either instead or in addition.
I'm not sure if micronaut-grpc examples use kotest at all / what the build changes required would be; I think it may just be changing testRuntime to kotest in the build.gradle and adding a ProjectConfig.kt (docs at https://kotest.io/project_config/ and note it can now be a sibling of the other test files instead of being in the provided package).
The bean factory can be added to the ProjectConfig.kt or can be in its own file that's a peer of the test file. It didn't work for me to have the @Factory in the same file as the test. But I think the code changes are relatively minor:
There is a gRPC service test example for Kotlin using JUnit: https://github.com/micronaut-projects/micronaut-grpc/blob/master/examples/hello-world-kotlin/src/test/kotlin/helloworld/GreetingServiceTest.kt .
It would be great to have this example with Kotest, either instead or in addition.
I'm not sure if
micronaut-grpc
examples use kotest at all / what the build changes required would be; I think it may just be changingtestRuntime
tokotest
in thebuild.gradle
and adding aProjectConfig.kt
(docs at https://kotest.io/project_config/ and note it can now be a sibling of the other test files instead of being in theprovided
package).The bean factory can be added to the
ProjectConfig.kt
or can be in its own file that's a peer of the test file. It didn't work for me to have the@Factory
in the same file as the test. But I think the code changes are relatively minor:GreetingServiceFactory.kt
:The test structure changes slightly:
GreetingServiceTest.kt
:The text was updated successfully, but these errors were encountered: