Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
7b2185eb
Unverified
Commit
7b2185eb
authored
Dec 30, 2025
by
程序猿MT
Committed by
GitHub
Dec 30, 2025
Browse files
Delete backend/Makefile
parent
23ef3da0
Changes
1
Show whitespace changes
Inline
Side-by-side
backend/Makefile
deleted
100644 → 0
View file @
23ef3da0
.PHONY
:
wire build build-embed test-unit test-integration test-e2e test-cover-integration
wire
:
@
echo
"生成 Wire 代码..."
@
cd
cmd/server
&&
go generate
@
echo
"Wire 代码生成完成"
build
:
@
echo
"构建后端(不嵌入前端)..."
@
go build
-o
bin/server ./cmd/server
@
echo
"构建完成: bin/server"
build-embed
:
@
echo
"构建后端(嵌入前端)..."
@
go build
-tags
embed
-o
bin/server ./cmd/server
@
echo
"构建完成: bin/server (with embedded frontend)"
test-unit
:
@
go
test
-tags
unit ./...
-count
=
1
test-integration
:
@
go
test
-tags
integration ./...
-count
=
1
-race
-parallel
=
8
test-e2e
:
@
echo
"运行 E2E 测试(需要本地服务器运行)..."
@
go
test
-tags
e2e ./internal/integration/...
-count
=
1
-v
test-cover-integration
:
@
echo
"运行集成测试并生成覆盖率报告..."
@
go
test
-tags
=
integration
-cover
-coverprofile
=
coverage.out
-count
=
1
-race
-parallel
=
8 ./...
@
go tool cover
-func
=
coverage.out |
tail
-1
@
go tool cover
-html
=
coverage.out
-o
coverage.html
@
echo
"覆盖率报告已生成: coverage.html"
clean-coverage
:
@
rm
-f
coverage.out coverage.html
@
echo
"覆盖率文件已清理"
clean
:
clean-coverage
@
rm
-rf
bin/
@
echo
"构建产物已清理"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment