-
-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't set pact.verifier.publishResults to true with Maven #724
Comments
The JUnit tests run by the surefire Maven plugin. You need to get it to set the property, as per http://maven.apache.org/surefire/maven-surefire-plugin/examples/system-properties.html |
The value of 'true' the verifier seeks is the string "true" rather than the boolean Also, this enables publishing verification results to a Pact Broker. So even if you set it to true, it has no use without a broker. |
JVM properties are always strings. How can you supply any other type of value? |
I think I erred because of my general jvm unfamiliarity. Rather than setting the property through maven (which I do now), I initially set pact.verifier.publishResults to the boolean true programatically. So
would not register as 'true', but this would:
This is probably just my own fault. |
Okay, this is what I have now:
This is working for me. You can close this thread now as my issue is solved. :) |
@derKnecht According to your last comment:
That still not work for me. Could you please help me? |
This is my configuration but still not works no matter I change the value to |
@Norman-else what version of Pact-JVM are you using? |
Hi even I am also not able to publish the results after verifying . I am getting error as publish is not set to true. I am using this pulgin org.apache.maven.plugins maven-surefire-plugin 3.0.0-M5 trueand my other dependency details are au.com.dius pact-jvm-provider-junit 4.0.10 au.com.dius pact-jvm-provider-maven 4.0.10Can anyone please help me on this. I am able to do the verification sucessfully. I want to publish my results into PACT BROKER back I have used "true",ture,'true' nothing workedout for me :( |
@Dattasaisukumar just check https://maven.apache.org/surefire/maven-surefire-plugin/examples/system-properties.html, |
Hello,
since an update I get the following warning:
[main] WARN au.com.dius.pact.provider.junit.InteractionRunner - Skipping publishing of verification results (pact.verifier.publishResults is not set to 'true')
As I found this #publishing-verification-results-to-a-pact-broker-version-354 I tried to set the property in the pom.xml in property-section, via the properties-maven-plugin and via command line (Dpact.verifier.publishResults=true), but nothing of that worked for me. I could not figure out how to set it to true.
Any ideas?
Edit: This may be a duplicate of: #538
As I use Annotations (@PactUrl) and there is no Annotation like PactBrokerUrl there may be another chance? I need an url like:
"http://" + Constants.PACTBROKERHOST + ":" + Constants.PACTBROKERPORT + "/pacts/provider/" + PROVIDER + "/consumer/" + CONSUMER+ "/version/" + PACTVERSION
The text was updated successfully, but these errors were encountered: