-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing utilities for JS/TS services #101
Comments
In the Java SDK we have some testing utilities based on testcontainers. This is a sample usage: https://github.com/restatedev/sdk-java/blob/main/sdk-test/src/test/java/dev/restate/sdk/testing/CounterTest.java We could replicate the same experience in the ts sdk using testcontainers-node |
Would it possible to directly use test-containers w/o a wrapping framework? If so, could it become an example? |
Totally possible, the Java sdk-test module is just a thin wrapper that automates the port forwarding and the registration of the service, nothing more than that.
We can definitely start from that I believe, it will just look a bit manual at the beginning, but i guess it's fine. |
An idea that came up was to publish our testcontainer image as an official testcontainers module. |
Some experiments: restatedev/node-template-generator#19 |
Solved by adding an example. |
In order to provide a good dev-ex, it would be great if we provided our users some testing utilities to easily test their services via unit and integration tests.
The text was updated successfully, but these errors were encountered: