ITV / scala-pact

A Scala implementation of CDC using the Pact standard
Other
108 stars 54 forks source link

Fixes #190 / #203: allow control over when stub server starts and stops. #211

Closed solarmosaic-kflorence closed 3 years ago

solarmosaic-kflorence commented 3 years ago

This is a fully backwards compatible change. It introduces a new public class, ScalaPactMockServer as well as adding the option to use startServer instead of runConsumerTest in the ScalaPactDescription DSL.

This also partially addresses #203 as tests no longer need to be executed synchronously with this pattern, however this really only affects consumer tests, not provider tests.

solarmosaic-kflorence commented 3 years ago

@jbwheatley @davesmith00000 anything I can do to help move this through faster?

solarmosaic-kflorence commented 3 years ago

Thanks! 🎉