Skip to content

Multiple interactions per test? #77

Answered by surpher
tsfischer asked this question in Q&A
Discussion options

You must be logged in to vote

@tsfischer in the mean time, you can try branch feat/validate-interaction-set (https://github.com/surpher/PactSwift/tree/feat/validate-interaction-set).

How you'd need to do this now (reusing your initial code example):

           let interactionLowercaseFoo = pactMockService
                .uponReceiving("A request for searching foo")
                .given("Computer is set up for foo")
                .withRequest(method: .POST, path: "myTestAPI1", headers: [ "Content-Type": "application/json" ], body:nil)
                .willRespondWith(<...my response for API 1...>)

            let interactionCapitalisedFoo = pactMockService
                .uponReceiving("A request for processing Foo

Replies: 7 comments 12 replies

Comment options

You must be logged in to vote
2 replies
@tsfischer
Comment options

@surpher
Comment options

Comment options

You must be logged in to vote
1 reply
@surpher
Comment options

Comment options

You must be logged in to vote
4 replies
@surpher
Comment options

@surpher
Comment options

@surpher
Comment options

@surpher
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@surpher
Comment options

@tsfischer
Comment options

@tsfischer
Comment options

Answer selected by surpher
Comment options

You must be logged in to vote
2 replies
@surpher
Comment options

@tsfischer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants