diff --git a/.travis.yml b/.travis.yml index b17cad11..412f25fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/docs/development.md b/docs/development.md index 6c1315dd..2fb5bedc 100644 --- a/docs/development.md +++ b/docs/development.md @@ -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 ``` diff --git a/httprunner/requirements-dev.txt b/httprunner/requirements-dev.txt new file mode 100644 index 00000000..24a07fae --- /dev/null +++ b/httprunner/requirements-dev.txt @@ -0,0 +1,7 @@ +requests +PyYAML +PyUnitReport +har2case +colorama +colorlog +flask \ No newline at end of file diff --git a/setup.py b/setup.py index ce1f7452..05dabe72 100644 --- a/setup.py +++ b/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={