add requirements-dev.txt for debugging

This commit is contained in:
httprunner
2018-02-22 11:23:34 +08:00
parent b4a5c04014
commit 1629063b39
4 changed files with 25 additions and 5 deletions
+1 -2
View File
@@ -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
View File
@@ -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
``` ```
+7
View File
@@ -0,0 +1,7 @@
requests
PyYAML
PyUnitReport
har2case
colorama
colorlog
flask
+1 -1
View File
@@ -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={