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
Copy file name to clipboardExpand all lines: README.md
+52
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,58 @@ async fn main() {
63
63
The SDK uses tokio's [`tracing`](https://docs.rs/tracing/latest/tracing/) crate to generate logs.
64
64
Just configure it as usual through [`tracing_subscriber`](https://docs.rs/tracing-subscriber/latest/tracing_subscriber/) to get your logs.
65
65
66
+
### Testing
67
+
68
+
The SDK uses [Testcontainers](https://rust.testcontainers.org/) to support integration testing using a Docker-deployed restate server.
69
+
The `restate-sdk-test-env` crate provides a framework for initializing the test environment, and an integration test example in `test-env/tests/test_container.rs`.
70
+
71
+
```rust
72
+
#[tokio::test]
73
+
asyncfntest_container() {
74
+
tracing_subscriber::fmt::fmt()
75
+
.with_max_level(tracing::Level::INFO) // Set the maximum log level
0 commit comments