TUN-3890: Code coverage for cloudflared in CI

Also changed the socks test code so that it binds to localhost, so that
we don't get popups saying "would you like to allow socks.test to use
the network"
This commit is contained in:
Adam Chalmers
2021-02-08 15:31:51 -06:00
parent a4f185fd28
commit d8bee0b4d9
4 changed files with 10 additions and 3 deletions

View File

@@ -88,7 +88,13 @@ container:
.PHONY: test
test: vet
ifndef CI
go test -v -mod=vendor -race $(VERSION_FLAGS) ./...
else
@mkdir -p .cover
go test -v -mod=vendor -race $(VERSION_FLAGS) -coverprofile=".cover/c.out" ./...
go tool cover -html ".cover/c.out" -o .cover/all.html
endif
.PHONY: test-ssh-server
test-ssh-server: