Skip to content

Commit af27382

Browse files
committed
refactor: merge all tests into unit-complete
1 parent 5d0c0b3 commit af27382

20 files changed

+223
-719
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ test/pre-commit:
5353

5454
## Run all Go tests inside a build-tools docker container. This is complementary to running 'go test ./test/...'.
5555
.PHONY: test/unit-tests
56+
test/unit-tests: TEST ?= "TestUnit"
5657
test/unit-tests: DOCKER_FLAGS += ${DOCKER_GITHUB_FLAGS}
5758
test/unit-tests:
5859
@echo "${YELLOW}[TEST] ${GREEN}Start Running Go Tests in Docker Container.${RESET}"
59-
$(call go-test,./test/...)
60+
$(call go-test,./test -run $(TEST))
6061

6162
## Clean up cache and temporary files
6263
.PHONY: clean

go.mod

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@ module github.com/mineiros-io/terraform-github-repository/v2
22

33
go 1.13
44

5-
require (
6-
github.com/gruntwork-io/terratest v0.30.0
7-
github.com/stretchr/testify v1.4.0
8-
)
5+
require github.com/gruntwork-io/terratest v0.34.7

go.sum

+102-39
Large diffs are not rendered by default.

test/public-repository-complete-example/outputs.tf

-46
This file was deleted.

test/public-repository-with-collaborators/main.tf

-25
This file was deleted.

test/public-repository-with-collaborators/outputs.tf

-19
This file was deleted.

test/public-repository-with-collaborators/variables.tf

-108
This file was deleted.

test/public-repository-with-secret/main.tf

-19
This file was deleted.

test/public-repository-with-secret/outputs.tf

-14
This file was deleted.

test/public-repository-with-secret/variables.tf

-35
This file was deleted.

test/public-repository-with-webhook/main.tf

-24
This file was deleted.

test/public-repository-with-webhook/outputs.tf

-39
This file was deleted.

0 commit comments

Comments
 (0)