github.com/ixpectus/declarate@v0.0.0-20240422152255-708027d7c068/Makefile (about) 1 run-postgres: 2 docker run --name pg -d -e POSTGRES_HOST_AUTH_METHOD=trust -p 5440:5432 postgres:10.21 3 4 allure-results: 5 mkdir allure-results 6 7 start-postgres: 8 docker start pg 9 10 stop-postgres: 11 docker stop pg 12 13 14 test: allure-results 15 go build -o build/main cmd/example/main.go 16 go test -v ./tests/... -count=1 -run TestSuite 17 18 19 test-cover: 20 go build -o build/main cmd/example/main.go 21 go test -cover -coverpkg github.com/ixpectus/declarate/... -coverprofile cover.out -v ./tests/... -count=1 -run TestExample 22 go tool cover -html=cover.out -o cover.html 23 24 25 run-polling: 26 go run cmd/example/main.go -dir ./tests/yaml_poll/poll_long.yaml -progress_bar 27