test(backend): move tests to *_test pkg

This commit is contained in:
2026-01-03 16:07:38 +00:00
parent ceb4c9f23c
commit 0002affaff
9 changed files with 96 additions and 75 deletions

View File

@@ -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/