From 9c770b929ad82701301aae5bccfc2bd77de2a799 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Thu, 22 Feb 2018 10:37:15 +0800 Subject: [PATCH] add debugging entrance cmd --- docs/development.md | 2 +- httprunner/cli.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/development.md b/docs/development.md index a19dd02e..6c1315dd 100644 --- a/docs/development.md +++ b/docs/development.md @@ -5,5 +5,5 @@ To develop or debug `HttpRunner`, you can install relevant requirements and use ```bash $ python setup.py install $ python httprunner/cli.py hrun -h -$ python httprunner/cli.py locust -h +$ python httprunner/cli.py locusts -h ``` diff --git a/httprunner/cli.py b/httprunner/cli.py index b3f0c796..3239ce96 100644 --- a/httprunner/cli.py +++ b/httprunner/cli.py @@ -148,7 +148,7 @@ def main_locust(): if __name__ == '__main__': cmd = sys.argv.pop(1) - if cmd == "hrun": + if cmd in ["hrun", "httprunner", "ate"]: main_hrun() - elif cmd == "locust": + elif cmd in ["locust", "locusts"]: main_locust()