Skip to content

Commit 42e0a47

Browse files
committed
feat: add local and docker test run with races
1 parent ca29743 commit 42e0a47

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1-
test:
1+
.PHONY: test-docker test
2+
3+
test-docker:
24
docker compose -f docker-compose.test.yaml up toxiproxy integration_test --abort-on-container-exit
5+
6+
test:
7+
go test -race -v -covermode=atomic -coverprofile=coverage.out ./ocppj \
8+
go test -race -v -covermode=atomic -coverprofile=ocpp16.out -coverpkg=github.com/lorenzodonini/ocpp-go/ocpp1.6/... github.com/lorenzodonini/ocpp-go/ocpp1.6_test \
9+
go test -race -v -covermode=atomic -coverprofile=ocpp201.out -coverpkg=github.com/lorenzodonini/ocpp-go/ocpp2.0.1/... github.com/lorenzodonini/ocpp-go/ocpp2.0.1_test

0 commit comments

Comments
 (0)