fuzzyworld

template / commit

Creating the test dir during testing.

1f7f34dc287b2c1edfa601a683d084517c3da532 · Pavel Safronov · 2022-10-05 20:52:37 -0700 · parents 2a2233504cf7

Creating the test dir during testing.
 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index d74e98d..abda531 100644
--- a/Makefile
+++ b/Makefile
@@ -8,14 +8,14 @@ BINARY_NAME := template
 build:
 	go build .
 
-install:
+install: build
 	./scripts/clean-install.ps1
 
-test:
+test: build
+	@New-Item -ItemType Directory -Force -Path ./test | out-null
 	go test -v ./... -coverprofile="./test/coverage.out"
 
-test_coverage:
-	go test -v ./... -coverprofile="./test/coverage.out"
+test_coverage: test
 	go tool cover -html="./test/coverage.out" -o "./test/coverage.html"
 
 test_coverage_html: test_coverage