Open oswaldquek opened 5 years ago
The fix to #522 results in the verification result being published if all the interactions have a result. If the result of applying your filter means that there is at least one interaction without a result, it will not publish anything.
You need to make sure there are tests that exercise all the combinations. I.e., if there are interactions that don't have provider states "some state" and "another state" there needs to be a test for those.
It seems that with the following configuration on a pact provider test:
results are not published to the pact broker. if I remove the
au.com.dius.pact.provider.junit.loader.PactFilter
annotation from my test I seeI think this somewhat relates to https://github.com/DiUS/pact-jvm/issues/522. I'm not positive a verification result should be published to the pact broker if only a subset of interactions (filtered by the
@PactFilter
) are played. I agree this will add a lot of complexity and perhaps this PactFilter feature should be re-thought.