add requirements-dev.txt for debugging

This commit is contained in:
httprunner
2018-02-22 11:07:31 +08:00
parent b4a5c04014
commit 1629063b39
4 changed files with 25 additions and 5 deletions

View File

@@ -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:

View File

@@ -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
```

View File

@@ -0,0 +1,7 @@
requests
PyYAML
PyUnitReport
har2case
colorama
colorlog
flask

View File

@@ -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={