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

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

View File

@@ -38,6 +38,8 @@ TODO
## 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:
```sh
@@ -60,8 +62,7 @@ Using 2195432783 as seed
[INFO] Final Memory: 11M/156M
[INFO] ------------------------------------------------------------------------
```
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/):
If you want to run the tests in all the python platforms:
```sh
$ make test-all

View File

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