update python tests

This commit is contained in:
geekerzp
2015-05-19 15:21:09 +08:00
parent 68b0259c47
commit a77ae51318
4 changed files with 9 additions and 6 deletions

View File

@@ -38,6 +38,8 @@ TODO
## Tests ## Tests
(Make sure you are running it inside of a [virtualenv](http://docs.python-guide.org/en/latest/dev/virtualenvs/))
You can run the tests in the current python platform: You can run the tests in the current python platform:
```sh ```sh
@@ -60,8 +62,7 @@ Using 2195432783 as seed
[INFO] Final Memory: 11M/156M [INFO] Final Memory: 11M/156M
[INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------
``` ```
If you want to run the tests in all the python platforms, If you want to run the tests in all the python platforms:
make sure you are running it inside of a [virtualenv](http://docs.python-guide.org/en/latest/dev/virtualenvs/):
```sh ```sh
$ make test-all $ make test-all

View File

@@ -8,7 +8,7 @@ ifndef VIRTUAL_ENV
http://docs.python-guide.org/en/latest/dev/virtualenvs/) http://docs.python-guide.org/en/latest/dev/virtualenvs/)
endif endif
setup: $(SETUP_OUT) setup: virtualenv $(SETUP_OUT)
$(SETUP_OUT): setup.py setup.cfg $(SETUP_OUT): setup.py setup.cfg
python setup.py develop python setup.py develop
@@ -31,7 +31,7 @@ requirements: setup $(REQUIREMENTS_OUT)
test: clean requirements test: clean requirements
nosetests nosetests
test-all: virtualenv clean requirements test-all: clean requirements
tox tox

View File

@@ -38,6 +38,8 @@ TODO
## Tests ## Tests
(Make sure you are running it inside of a [virtualenv](http://docs.python-guide.org/en/latest/dev/virtualenvs/))
You can run the tests in the current python platform: You can run the tests in the current python platform:
```sh ```sh
@@ -60,8 +62,7 @@ Using 2195432783 as seed
[INFO] Final Memory: 11M/156M [INFO] Final Memory: 11M/156M
[INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------
``` ```
If you want to run the tests in all the python platforms, If you want to run the tests in all the python platforms:
make sure you are running it inside of a [virtualenv](http://docs.python-guide.org/en/latest/dev/virtualenvs/):
```sh ```sh
$ make test-all $ make test-all

View File

@@ -2,6 +2,7 @@
logging-clear-handlers=true logging-clear-handlers=true
verbosity=2 verbosity=2
randomize=true randomize=true
exe=true
with-coverage=true with-coverage=true
cover-package=SwaggerPetstore cover-package=SwaggerPetstore
cover-erase=true cover-erase=true