1 Star 0 Fork 8

bemy/api-testing

forked from Rick/api-testing 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
build:
mkdir -p bin
rm -rf bin/atest
go build -o bin/atest main.go
goreleaser:
goreleaser build --rm-dist --snapshot
build-image:
docker build -t ghcr.io/linuxsuren/api-testing:dev .
run-image:
docker run ghcr.io/linuxsuren/api-testing:dev
copy: build
sudo cp bin/atest /usr/local/bin/
copy-restart: build
atest service stop
make copy
atest service restart
test:
go test ./... -cover -v -coverprofile=coverage.out
go tool cover -func=coverage.out
test-collector:
go test github.com/linuxsuren/api-testing/extensions/collector/./... -cover -v -coverprofile=collector-coverage.out
go tool cover -func=collector-coverage.out
grpc:
protoc --go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
pkg/server/server.proto
grpc-js:
protoc -I=pkg/server server.proto \
--js_out=import_style=commonjs:bin \
--grpc-web_out=import_style=commonjs,mode=grpcwebtext:bin
grpc-java:
protoc --plugin=protoc-gen-grpc-java=/usr/local/bin/protoc-gen-grpc-java \
--grpc-java_out=bin --proto_path=pkg/server server.proto
install-tool:
go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/bemy/api-testing.git
[email protected]:bemy/api-testing.git
bemy
api-testing
api-testing
master

搜索帮助