From 00ad81aa56e11a18669f4759f539e5f5243a61bd Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Sat, 28 Jun 2025 13:24:48 +0800 Subject: [PATCH] feat: add version info --- summary.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/summary.go b/summary.go index 6bb1eed5..28c41101 100644 --- a/summary.go +++ b/summary.go @@ -14,9 +14,13 @@ import ( "github.com/httprunner/httprunner/v5/uixt/option" ) +func Version() string { + return version.VERSION +} + func NewSummary() *Summary { platForm := &Platform{ - HttprunnerVersion: version.VERSION, + HttprunnerVersion: Version(), GoVersion: runtime.Version(), Platform: fmt.Sprintf("%v-%v", runtime.GOOS, runtime.GOARCH), }