How easy is it to make these acceptance tests pass in your language and framework of choice?
You'll only need to do this stuff one time.
- Install the latest version of Go
- Pull this repo down into your
GOPATH
:
go get github.com/jwfriese/flavor-flavor
go get github.com/onsi/ginkgo/ginkgo`
go get github.com/onsi/gomega/...
go get github.com/Benjamintf1/Expanded-Unmarshalled-Matchers
- Set up your database. This repo provides a script that will spin up a Postgres instance in a container using Docker. Run it using the following command from the project's root:
./script/init-db.sh
You can also choose to set up your own Postgres instance if you like. Just make
sure that it has a user name flavor-flavor
with a password of moreflava
so
that the test script can reset the DB before running.
- Ensure your API is running on
localhost:8181
. - Run using the test script by running the following command from the project's root:
./test.sh
The script takes two actions in sequence: 1) It resets the database; 2) It runs the tests.