Add note about running a redis server for the tests

[ci skip]
This commit is contained in:
Justin Li 2013-09-06 18:34:56 -04:00
parent 385bd55f91
commit ae9eaf4351

View file

@ -42,10 +42,12 @@ flag. An example configuration file can be found
### Running the tests ### Running the tests
The tests require a running redis server to function correctly, and a config to use for the tests.
The `$TESTCONFIGPATH` environment variable is required for the tests to function:
```sh ```sh
$ export TESTCONFIGPATH=$GOPATH/src/chihaya/config/example.json $ cd $GOPATH/src/github.com/pushrax/chihaya
$ go get github.com/pushrax/chihaya $ TESTCONFIGPATH=$GOPATH/src/github.com/pushrax/chihaya/config/example.json go test -v ./...
$ go test -v ./...
``` ```
## Drivers ## Drivers