mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-20 07:40:32 +08:00
add requirements-dev.txt for debugging
This commit is contained in:
@@ -8,8 +8,7 @@ python:
|
||||
install:
|
||||
- pip install coverage
|
||||
- pip install coveralls
|
||||
- pip install flask
|
||||
- python setup.py install
|
||||
- pip install -r requirements-dev.txt
|
||||
script:
|
||||
- coverage run --source=httprunner -m unittest discover
|
||||
after_success:
|
||||
|
||||
@@ -1,9 +1,23 @@
|
||||
## 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
|
||||
$ 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
|
||||
|
||||
# debug locusts
|
||||
$ python httprunner/cli.py locusts -h
|
||||
```
|
||||
|
||||
7
httprunner/requirements-dev.txt
Normal file
7
httprunner/requirements-dev.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
requests
|
||||
PyYAML
|
||||
PyUnitReport
|
||||
har2case
|
||||
colorama
|
||||
colorlog
|
||||
flask
|
||||
2
setup.py
2
setup.py
@@ -23,7 +23,7 @@ setup(
|
||||
long_description=long_description,
|
||||
author='Leo Lee',
|
||||
author_email='mail@debugtalk.com',
|
||||
url='https://github.com/debugtalk/HttpRunner',
|
||||
url='https://github.com/HttpRunner/HttpRunner',
|
||||
license='MIT',
|
||||
packages=find_packages(exclude=["examples", "tests", "tests.*"]),
|
||||
package_data={
|
||||
|
||||
Reference in New Issue
Block a user