add hrun command short for httprunner

This commit is contained in:
httprunner
2017-11-12 08:56:00 +08:00
parent a57d5370c5
commit 75b15f2a79
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -32,18 +32,18 @@ This option works on each installation method described above. ::
Check Installation Check Installation
------------------ ------------------
When HttpRunner is installed, a **httprunner** command should be available in your shell (if you're not using When HttpRunner is installed, a **httprunner** (**hrun** for short) command should be available in your shell (if you're not using
virtualenv—which you should—make sure your python script directory is on your path). virtualenv—which you should—make sure your python script directory is on your path).
To see ``HttpRunner`` version: :: To see ``HttpRunner`` version: ::
$ httprunner -V $ httprunner -V # same as: hrun -V
HttpRunner version: 0.8.1b HttpRunner version: 0.8.1b
PyUnitReport version: 0.1.3b PyUnitReport version: 0.1.3b
To see available options, run:: To see available options, run::
$ httprunner -h $ httprunner -h # same as: hrun -h
usage: httprunner [-h] [-V] [--log-level LOG_LEVEL] [--report-name REPORT_NAME] usage: httprunner [-h] [-V] [--log-level LOG_LEVEL] [--report-name REPORT_NAME]
[--failfast] [--startproject STARTPROJECT] [--failfast] [--startproject STARTPROJECT]
[testset_paths [testset_paths ...]] [testset_paths [testset_paths ...]]
+1
View File
@@ -35,6 +35,7 @@ setup(
'console_scripts': [ 'console_scripts': [
'ate=httprunner.cli:main_ate', 'ate=httprunner.cli:main_ate',
'httprunner=httprunner.cli:main_ate', 'httprunner=httprunner.cli:main_ate',
'hrun=httprunner.cli:main_ate',
'locusts=httprunner.cli:main_locust' 'locusts=httprunner.cli:main_locust'
] ]
} }