Hello, have anyone tried passing the port number f...
# general
j
Hello, have anyone tried passing the port number for the mock server as a command line argument when running consumer tests? Tried it but failing, may be I am missing something. Any thoughts? Thanks.
Copy code
@PactTestFor(providerName = "test-provider", port = "${pact.server.port}")
t
What error are you getting? IT looks like this question would be best asked in #C9UN99H24
j
We would be setting the same port in one of our config yml file hence we would like to either set it via command line or read and pass it to our yml config similar to using @AutoConfigureWiremockPort which exposes the port via ${wiremock.server.port}
It is Java error, java.lang.NumberFormatException: For input string: "${pact.server.port}". I