diff options
author | Valery Piashchynski <[email protected]> | 2021-07-07 12:37:24 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-07-07 12:37:24 +0300 |
commit | 127186a72d4b8d30f6ada72ade661d8713490728 (patch) | |
tree | 0a241602c1b0461c4e0535d9e4183a978b751c8d /Makefile | |
parent | 36bf9228e60f59f569e84822e2860980d7ed698d (diff) |
Rework test env...
Move all dockerfiles, docker-compose files into the env folder inside
the tests folder.
Add elasticmq dockerfile to build SQS compatible test env.
Add beanstalk, rabbitmq, sqs to the main tests docker-compose file.
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -5,7 +5,7 @@ SHELL = /bin/sh test_coverage: - docker-compose -f tests/docker-compose.yaml up -d --remove-orphans + docker-compose -f tests/env/docker-compose.yaml up -d --remove-orphans rm -rf coverage mkdir coverage go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage/pipe.out -covermode=atomic ./pkg/transport/pipe @@ -38,10 +38,10 @@ test_coverage: go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage/ws_plugin.out -covermode=atomic ./tests/plugins/websockets go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage/ws_origin.out -covermode=atomic ./plugins/websockets cat ./coverage/*.out > ./coverage/summary.out - docker-compose -f tests/docker-compose.yaml down + docker-compose -f tests/env/docker-compose.yaml down test: ## Run application tests - docker-compose -f tests/docker-compose.yaml up -d + docker-compose -f tests/env/docker-compose.yaml up -d go test -v -race -tags=debug ./pkg/transport/pipe go test -v -race -tags=debug ./pkg/transport/socket go test -v -race -tags=debug ./pkg/pool @@ -71,10 +71,10 @@ test: ## Run application tests go test -v -race -tags=debug ./tests/plugins/broadcast go test -v -race -tags=debug ./tests/plugins/websockets go test -v -race -tags=debug ./plugins/websockets - docker-compose -f tests/docker-compose.yaml down + docker-compose -f tests/env/docker-compose.yaml down testGo1.17beta1: ## Run application tests - docker-compose -f tests/docker-compose.yaml up -d + docker-compose -f tests/env/docker-compose.yaml up -d go1.17beta1 test -v -race -tags=debug ./pkg/transport/pipe go1.17beta1 test -v -race -tags=debug ./pkg/transport/socket go1.17beta1 test -v -race -tags=debug ./pkg/pool @@ -102,4 +102,4 @@ testGo1.17beta1: ## Run application tests go1.17beta1 test -v -race -tags=debug ./tests/plugins/websockets go1.17beta1 test -v -race -tags=debug ./tests/plugins/broadcast go1.17beta1 test -v -race -tags=debug ./plugins/websockets - docker-compose -f tests/docker-compose.yaml down + docker-compose -f tests/env/docker-compose.yaml down |