Hi All. I wonder how do you spin up the provider s...
# pact-jvm
x
Hi All. I wonder how do you spin up the provider service before you kick off its verification test? If I treat this provider side test as a kind of unit test, CI pipeline won't start the real provider application when running unit tests. I'm very confused. Please help. Thank you.
u
There are options, depending on whether you are using Gradle, Maven, Spring or Springboot.
x
Hi @uglyog I am using Gradle/Springboot. Any suggestions please?
u
Springboot tests can start the app as part of the tests. Refer to the Springboot docs and the
@SpringBootTest
annotation
x
Thanks @uglyog. For for the provider's dependencies, do I need to stub them and put on @State on provider's verification test class?
Problem solved. Now I can treat provider side test as a normal unit test and integrate it with existing CI pipeline.