mirror of
https://github.com/get-drexa/drive.git
synced 2026-02-02 16:11:17 +00:00
test(backend): move tests to *_test pkg
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
.PHONY: build build-docs build-all run run-docs docs install-tools fmt clean
|
||||
.PHONY: build build-docs build-all run run-docs docs install-tools fmt test clean
|
||||
|
||||
ROOT_DIR := $(abspath $(CURDIR)/../..)
|
||||
|
||||
# Build the API server
|
||||
build:
|
||||
@@ -39,6 +41,10 @@ fmt:
|
||||
go fmt ./...
|
||||
swag fmt
|
||||
|
||||
test:
|
||||
@mkdir -p $(ROOT_DIR)/.gocache $(ROOT_DIR)/.gomodcache
|
||||
@GOCACHE=$(ROOT_DIR)/.gocache GOMODCACHE=$(ROOT_DIR)/.gomodcache go test ./...
|
||||
|
||||
# Clean build artifacts
|
||||
clean:
|
||||
rm -rf bin/
|
||||
|
||||
Reference in New Issue
Block a user