Mike
03/15/2022, 12:12 PM@PactDirectory("pact-files")
@Provider("iPaaS_Stripe")
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
class PactStripeProviderTest {
as a result
Did not find any PactSource annotations. At least one pact source must be set
java.lang.UnsupportedOperationException: Did not find any PactSource annotations. At least one pact source must be set
However, pact is present in pact-files folder. Do you know how to handle this?Matt (pactflow.io / pact-js / pact-go)
Mike
03/15/2022, 1:46 PMMike
03/15/2022, 1:47 PMMike
03/15/2022, 1:47 PMMike
03/15/2022, 1:48 PMuglyog
Mike
03/16/2022, 7:26 AMgesellix
03/16/2022, 12:43 PMpact-files
folder located? Maybe the base path is different?Mike
03/16/2022, 12:57 PMgesellix
03/17/2022, 9:20 PMpact-files
folder would be found at the root of the classpath. So, in a Maven or Gradle project you should try to put the pact-folder
at <project-root>/src/test/resources/pact-folder/
.uglyog
@PactDirectory
annotation is used to set the output directory that the consumer tests write pacts to. <http://au.com|au.com>.dius.pact.provider.junitsupport.loader.@PactFolder
is used to setup a loader to load Pacts from a directory.