feat(e2e): add integration tests (#100)

* add integration tests

* add workflow

---------

Co-authored-by: David Terpay <35130517+davidterpay@users.noreply.github.com>
This commit is contained in:
Nikhil Vasan
2023-09-18 10:03:11 -04:00
committed by GitHub
co-authored by David Terpay
parent 25ab05444c
commit 454d2e5f3d
13 changed files with 430 additions and 1715 deletions
+3 -3
View File
@@ -104,11 +104,11 @@ use-integration:
docker-build: use-main
@echo "Building E2E Docker image..."
@DOCKER_BUILDKIT=1 docker build -t skip-mev/pob-e2e -f contrib/images/pob.e2e.Dockerfile .
@DOCKER_BUILDKIT=1 docker build -t skip-mev/block-sdk-e2e -f contrib/images/block-sdk.e2e.Dockerfile .
docker-build-integration: use-main
@echo "Building integration-test Docker image..."
@DOCKER_BUILDKIT=1 docker build -t pob-integration -f contrib/images/pob.integration.Dockerfile .
@DOCKER_BUILDKIT=1 docker build -t block-sdk-integration -f contrib/images/block-sdk.integration.Dockerfile .
###############################################################################
### Tests ###
@@ -119,7 +119,7 @@ TEST_INTEGRATION_TAGS = integration
test-integration: $(TEST_INTEGRATION_DEPS)
@ echo "Running integration tests..."
@go test ./tests/integration/pob_integration_test.go -timeout 30m -race -v -tags='$(TEST_INTEGRATION_TAGS)'
@go test ./tests/integration/block_sdk_integration_test.go -timeout 30m -race -v -tags='$(TEST_INTEGRATION_TAGS)'
test: use-main
@go test -v -race $(shell go list ./... | grep -v tests/)