mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-13 03:39:44 +08:00
rename main_ate to main_hrun
This commit is contained in:
@@ -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
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
""" used for debugging
|
|
||||||
"""
|
|
||||||
|
|
||||||
from httprunner.cli import main_ate
|
|
||||||
main_ate()
|
|
||||||
5
main-hrun.py
Normal file
5
main-hrun.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
""" used for debugging
|
||||||
|
"""
|
||||||
|
|
||||||
|
from httprunner.cli import main_hrun
|
||||||
|
main_hrun()
|
||||||
6
setup.py
6
setup.py
@@ -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'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user