Chaining requests in Route TestKit


(Paweł Kordek) #1

Hello

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?

Thanks
Paweł


(Paweł Kordek) #2

Follow-up:


(Johannes Rudolph) #3

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?