go get github.com/ravendb/ravendb-go-client
cd $GOPATH/src/ravendb-go-client
# get dependencies
go get -v -u .\...
To run current tests do: ./run_tests.sh
.
I'm developing and testing mostly on Mac. The CI tests run on Linux.
Install as per Unix instructions.
When running go get -v -u .\...
to get dependencies, ignore
# github.com/google/gopacket/pcap
exec: "gcc": executable file not found in %PATH%
Packet capturing is optional, to help debugging.
First, you have to install latest beta version of go, currently 1.11beta3 from https://golang.org/dl/#go1.11beta1 Otherwise you'll hit bug golang/go#18468 (it should be backported to 1.10.4 as per golang/go#25292).
When running go test
, for now you must do go test -vet=off
. This is to avoid another bug golang/go#26390.
To run tests: go test -vet=off
.
On Windows, if RavenDB server is not present locally, we'll download it to RavenDB
directory.
Windows version doesn't capture traffic between HTTP client and server because gopacket
package requires CGO support and pcap to work so I stubbed it out to be a no-op.
For running https tests must import certs/ca.crt
as trusted certificate.
Double-click on certs/ca.crt
file. That opens Keychain Access
system app.
Click on Certificates
category, double-click on a.javatest11.development.run
certificate.
This opens a dialog box. In Trust
section select Always Trust
drop-down item.