Chaining requests in Route TestKit


I am testing some simple API with Route TestKit and I would like to know if it is possible to cleanly chain requests. Let’s say I want to test that the result of the get, and then a post, gives certain result. What is the cleanest/most idiomatic way to achieve that?



I’d say just run the checks one after each other.

val route = ???

request1 ~> route ~> check { ... }
request2 ~> route ~> check { ... }
// etc.

Anything that would speak against that?

Thank you. Nothing speaks against that, I was just checking if there exists some shortcut that I am not aware of :)