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
uglyog
03/08/2023, 10:27 PM
There are options, depending on whether you are using Gradle, Maven, Spring or Springboot.
x
xin chen
03/09/2023, 9:26 AM
Hi @uglyog I am using Gradle/Springboot. Any suggestions please?
u
uglyog
03/09/2023, 10:13 PM
Springboot tests can start the app as part of the tests. Refer to the Springboot docs and the
@SpringBootTest
annotation
x
xin chen
03/10/2023, 9:21 AM
Thanks @uglyog. For for the provider's dependencies, do I need to stub them and put on @State on provider's verification test class?
xin chen
03/13/2023, 9:16 AM
Problem solved. Now I can treat provider side test as a normal unit test and integrate it with existing CI pipeline.