rename main_ate to main_hrun

This commit is contained in:
debugtalk
2018-02-14 00:08:42 +08:00
parent 901c91514c
commit 9d13cddb39
5 changed files with 11 additions and 11 deletions

View File

@@ -1,9 +1,9 @@
## Development ## Development
To develop or debug `HttpRunner`, you can install relevant requirements and use `main-ate.py` or `main-locust.py` as entrances. To develop or debug `HttpRunner`, you can install relevant requirements and use `main-hrun.py` or `main-locust.py` as entrances.
```bash ```bash
$ pip install -r requirements.txt $ pip install -r requirements.txt
$ python main-ate -h $ python main-hrun -h
$ python main-locust -h $ python main-locust -h
``` ```

View File

@@ -13,7 +13,7 @@ from pyunitreport import __version__ as pyu_version
from pyunitreport import HTMLTestRunner from pyunitreport import HTMLTestRunner
def main_ate(): def main_hrun():
""" API test: parse command line options and run commands. """ API test: parse command line options and run commands.
""" """
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(

View File

@@ -1,5 +0,0 @@
""" used for debugging
"""
from httprunner.cli import main_ate
main_ate()

5
main-hrun.py Normal file
View File

@@ -0,0 +1,5 @@
""" used for debugging
"""
from httprunner.cli import main_hrun
main_hrun()

View File

@@ -33,9 +33,9 @@ setup(
], ],
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [
'ate=httprunner.cli:main_ate', 'ate=httprunner.cli:main_hrun',
'httprunner=httprunner.cli:main_ate', 'httprunner=httprunner.cli:main_hrun',
'hrun=httprunner.cli:main_ate', 'hrun=httprunner.cli:main_hrun',
'locusts=httprunner.cli:main_locust' 'locusts=httprunner.cli:main_locust'
] ]
} }