mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 07:57:27 +08:00
add requirements-dev.txt for debugging
This commit is contained in:
+1
-2
@@ -8,8 +8,7 @@ python:
|
|||||||
install:
|
install:
|
||||||
- pip install coverage
|
- pip install coverage
|
||||||
- pip install coveralls
|
- pip install coveralls
|
||||||
- pip install flask
|
- pip install -r requirements-dev.txt
|
||||||
- python setup.py install
|
|
||||||
script:
|
script:
|
||||||
- coverage run --source=httprunner -m unittest discover
|
- coverage run --source=httprunner -m unittest discover
|
||||||
after_success:
|
after_success:
|
||||||
|
|||||||
+16
-2
@@ -1,9 +1,23 @@
|
|||||||
## Development
|
## Development
|
||||||
|
|
||||||
To develop or debug `HttpRunner`, you can install relevant requirements and use `httprunner/cli.py` as entrances.
|
To develop or debug `HttpRunner`, you shall clone source code first.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ python setup.py install
|
$ git clone https://github.com/HttpRunner/HttpRunner.git
|
||||||
|
```
|
||||||
|
|
||||||
|
Then install all dependencies:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pip install -r requirements-dev.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
Now you can use `httprunner/cli.py` as debugging entrances.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# debug hrun
|
||||||
$ python httprunner/cli.py hrun -h
|
$ python httprunner/cli.py hrun -h
|
||||||
|
|
||||||
|
# debug locusts
|
||||||
$ python httprunner/cli.py locusts -h
|
$ python httprunner/cli.py locusts -h
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
requests
|
||||||
|
PyYAML
|
||||||
|
PyUnitReport
|
||||||
|
har2case
|
||||||
|
colorama
|
||||||
|
colorlog
|
||||||
|
flask
|
||||||
@@ -23,7 +23,7 @@ setup(
|
|||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
author='Leo Lee',
|
author='Leo Lee',
|
||||||
author_email='mail@debugtalk.com',
|
author_email='mail@debugtalk.com',
|
||||||
url='https://github.com/debugtalk/HttpRunner',
|
url='https://github.com/HttpRunner/HttpRunner',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
packages=find_packages(exclude=["examples", "tests", "tests.*"]),
|
packages=find_packages(exclude=["examples", "tests", "tests.*"]),
|
||||||
package_data={
|
package_data={
|
||||||
|
|||||||
Reference in New Issue
Block a user