Open tglaeser opened 8 months ago
What does WARNING: State Change ignored as there is no stateChange URL mean?
When executed in this manor, the state change handlers are invoked by using a URL. With JUnit, they are invoked by calling an annotated method on the JUnit test class. This warning is just stating the fact the you have not setup a state change handler URL, so none of the state changes will be executed.
From above: Type 'java.net.URL' is not supported on properties annotated with @input because Java Serialization can be inconsistent for this type.
There has been some Gradle improvements with the 4.6.x versions. You can try those. They also support Gradle 8.
pactSource needs to be of type URL, this has been reported before. But why do I need to configure pactSource in the first place? The task could just look up all files under build/pacts and run verification on them.
By design, the default way to use Pact is with a Pact Broker. This needs a URL and authentication to be configured.
How is the plugin supposed to be used with the Gradle Kotlin DSL?
I kind of got this working by declaring
and executing
gradle pactVerify
:But with problems:
WARNING: State Change ignored as there is no stateChange URL
mean? I don't get this warning when executing the same verification via Junit 5.hasPactWith
is a Groovy closure; this doesn't work well with the Kotlin DSL, requires an unchecked cast.pactSource
needs to be of typeURL
, this has been reported before. But why do I need to configurepactSource
in the first place? The task could just look up all files underbuild/pacts
and run verification on them.