mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-15 17:32:43 +08:00
feat: report events with Google Analytics
This commit is contained in:
@@ -12,7 +12,7 @@ from httprunner.compat import ensure_cli_args
|
||||
from httprunner.ext.har2case import init_har2case_parser, main_har2case
|
||||
from httprunner.make import init_make_parser, main_make
|
||||
from httprunner.scaffold import init_parser_scaffold, main_scaffold
|
||||
from httprunner.utils import init_sentry_sdk
|
||||
from httprunner.utils import init_sentry_sdk, ga_client
|
||||
|
||||
init_sentry_sdk()
|
||||
|
||||
@@ -26,6 +26,7 @@ def init_parser_run(subparsers):
|
||||
|
||||
def main_run(extra_args) -> enum.IntEnum:
|
||||
capture_message("start to run")
|
||||
ga_client.track_event("RunAPITests", "hrun")
|
||||
# keep compatibility with v2
|
||||
extra_args = ensure_cli_args(extra_args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user