mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 19:47:14 +08:00
feat: print HttpRunner version when executing locusts
This commit is contained in:
@@ -18,6 +18,7 @@ import multiprocessing
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from httprunner import __version__
|
||||||
from httprunner import logger
|
from httprunner import logger
|
||||||
from httprunner.utils import init_sentry_sdk
|
from httprunner.utils import init_sentry_sdk
|
||||||
|
|
||||||
@@ -104,6 +105,7 @@ def run_locusts_with_processes(sys_argv, processes_count):
|
|||||||
def main():
|
def main():
|
||||||
""" Performance test with locust: parse command line options and run commands.
|
""" Performance test with locust: parse command line options and run commands.
|
||||||
"""
|
"""
|
||||||
|
print("HttpRunner version: {}".format(__version__))
|
||||||
sys.argv[0] = 'locust'
|
sys.argv[0] = 'locust'
|
||||||
if len(sys.argv) == 1:
|
if len(sys.argv) == 1:
|
||||||
sys.argv.extend(["-h"])
|
sys.argv.extend(["-h"])
|
||||||
|
|||||||
Reference in New Issue
Block a user