Updated Testing (markdown)

master
Hunter Long 2018-07-22 00:22:57 -07:00
parent 020764df98
commit 26669cd01d
1 changed files with 6 additions and 2 deletions

@ -20,7 +20,11 @@ docker run -it -d -p 5432:5432 \
Once you have MySQL and Postgres running, you can begin the testing. SQLite database will create a `statup.db` file and will delete after testing. Once you have MySQL and Postgres running, you can begin the testing. SQLite database will create a `statup.db` file and will delete after testing.
## Run Tests ## Run Tests
Insert the database environment variables to auto connect the the databases and run `go test -v`. You'll see a verbose output of each test. If all tests pass, make a push request! 💃
```go ```go
go test -v DB_DATABASE=root \
DB_USER=root \
DB_PASS=password123 \
DB_HOST=localhost \
go test -v
``` ```