We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
OS: macOS 10.13.6 (17G65)
Consumer Pact library: pact-go v1.0.0-beta.2
Golang Version: go version go1.10.3 darwin/amd64
go version go1.10.3 darwin/amd64
Golang environment:
GOARCH="amd64" GOBIN="" GOCACHE="/Users/alex/Library/Caches/go-build" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/alex/Documents/source/go" GORACE="" GOROOT="/usr/local/Cellar/go/1.10.3/libexec" GOTMPDIR="" GOTOOLDIR="/usr/local/Cellar/go/1.10.3/libexec/pkg/tool/darwin_amd64" GCCGO="gccgo" CC="clang" CXX="clang++" CGO_ENABLED="1" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/5v/fvbqg92n7wg1vkr3gg4glvyh0000gn/T/go-build756609652=/tmp/go-build -gno-record-gcc-switches -fno-common"
The unspecified / default PactFileWriteMode should produce a pact file
PactFileWriteMode
The default PactFileWriteMode silently fails to produce a pact file
Configure pact as follows:
pact = &dsl.Pact{ Consumer: "PactGoMessageConsumer", Provider: "PactGoMessageProvider", PactDir: "/path/to/pacts", }
Run any pact using VerifyPactMessage (the consumer example would do)
Observe that no pact file is produced
Add PactFileWriteMode: "update" to the pact struct initializer
PactFileWriteMode: "update"
Verify that pact is being produced
The text was updated successfully, but these errors were encountered:
2acf846
Good spot. I've pushed up a small change now that should sort it out. If you could please confirm, I'll bump the version.
Sorry, something went wrong.
Yes, the fix works great, thank you.
Thanks for the report!
No branches or pull requests
Software versions
OS: macOS 10.13.6 (17G65)
Consumer Pact library: pact-go v1.0.0-beta.2
Golang Version:
go version go1.10.3 darwin/amd64
Golang environment:
Expected behaviour
The unspecified / default
PactFileWriteMode
should produce a pact fileActual behaviour
The default
PactFileWriteMode
silently fails to produce a pact fileSteps to reproduce
Configure pact as follows:
Run any pact using VerifyPactMessage (the consumer example would do)
Observe that no pact file is produced
Add
PactFileWriteMode: "update"
to the pact struct initializerVerify that pact is being produced
The text was updated successfully, but these errors were encountered: