Just some fun stuff with golang
To run all tests:
go test ./...To run tests with verbose output:
go test -v ./...To run benchmarks:
go test -bench=. ./tinkeringThe token package includes integration tests that require a PostgreSQL database. To run these tests:
- Start the database:
cd token
docker-compose up -d-
Remove the skip statement in
token/token_test.go(line 10:t.Skip()) -
Run the tests:
go test ./token -v- Stop the database when done:
cd token
docker-compose down