From dc9980a79c00f859c24a24455f2f163649f5efc0 Mon Sep 17 00:00:00 2001 From: Paul Stack Date: Tue, 1 Sep 2020 20:20:01 +0100 Subject: [PATCH] Adding a local testing target to the Makefile --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 2f023481f9..4505219b31 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,8 @@ TFGEN := pulumi-tfgen-${PACK} PROVIDER := pulumi-resource-${PACK} VERSION := $(shell pulumictl get version) +TESTPARALLELISM := 10 + WORKING_DIR := $(shell pwd) .PHONY: development provider build_sdks build_nodejs build_dotnet build_go build_python cleanup @@ -92,3 +94,6 @@ install_nodejs_sdk:: yarn link --cwd $(WORKING_DIR)/sdk/nodejs/bin install_sdks:: install_dotnet_sdk install_python_sdk install_nodejs_sdk + +test:: + cd examples && go test -v -tags=all -parallel ${TESTPARALLELISM} -timeout 2h