mirror of https://github.com/statping/statping
Updated Testing (markdown)
parent
020764df98
commit
26669cd01d
|
@ -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.
|
||||
|
||||
## 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
|
||||
DB_DATABASE=root \
|
||||
DB_USER=root \
|
||||
DB_PASS=password123 \
|
||||
DB_HOST=localhost \
|
||||
go test -v
|
||||
```
|
Loading…
Reference in New Issue