refactor: replace GA with GA4

This commit is contained in:
lilong.129
2023-07-20 23:08:51 +08:00
parent 503b3fd38f
commit 17b6d95b3b
8 changed files with 48 additions and 51 deletions

View File

@@ -6,10 +6,7 @@ import (
)
func RunPytest(args []string) error {
sdk.SendEvent(sdk.EventTracking{
Category: "RunAPITests",
Action: "hrp pytest",
})
sdk.SendGA4Event("hrp_pytest", nil)
args = append([]string{"run"}, args...)
return myexec.ExecPython3Command("httprunner", args...)