merge: maestro/tsk__R8M4jEw43JR [tsk__R8M4jEw43JR]
This commit is contained in:
@@ -12,6 +12,9 @@ build:
|
||||
build-codegen: ## 激活码批次生成 CLI
|
||||
go build -o bin/codegen ./cmd/codegen
|
||||
|
||||
build-agent: ## 节点 agent 二进制(部署到加速节点)
|
||||
go build -o bin/pangolin-agent ./cmd/agent
|
||||
|
||||
# ── test ───────────────────────────────────────────────────────────────────────
|
||||
test:
|
||||
go test ./...
|
||||
@@ -19,6 +22,9 @@ test:
|
||||
test-unit: ## 单测(不依赖外部服务)
|
||||
go test -count=1 -race ./internal/codes/... -run 'Test[^I][^n][^t]'
|
||||
|
||||
test-agent: ## 节点 agent 单测 + 集成(bufconn mock 控制面,无需 docker)
|
||||
go test -count=1 -race ./internal/agentd/... ./internal/pb/...
|
||||
|
||||
test-integration: ## 集成测试(需本机 docker,testcontainers)
|
||||
go test -count=1 ./internal/codes/... -run TestInt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user