Skip to content

Commit

Permalink
Fix docs on dredd
Browse files Browse the repository at this point in the history
  • Loading branch information
josephspurrier committed Jul 18, 2018
1 parent 16aeff4 commit 44af80e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ Sample output from Dredd is [here](https://github.com/josephspurrier/gowebapi/wi

### Install Dredd

You must have MySQL running for these tests to pass.

```bash
# Install dredd.
npm install -g dredd
Expand All @@ -171,6 +173,15 @@ go get github.com/snikch/goodman/cmd/goodman
# CD to the webapi folder.
cd src/app/webapi

# Copy the testdata/config.json to the current directory.
cp testdata/config.json ./config.json

# Build the hooks app to load the test data.
go build -o ./cmd/hooks/hooks app/webapi/cmd/hooks

# Start MySQL without a password.
docker run -d --name=mysql57 -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=yes mysql:5.7

# Run a test with dredd.
dredd
```
Expand Down

0 comments on commit 44af80e

Please sign in to comment.