From 68b0259c473772f181851c3fd721db419ba89b54 Mon Sep 17 00:00:00 2001 From: geekerzp Date: Sat, 16 May 2015 18:05:06 +0800 Subject: [PATCH] updated readme.md of python --- .../src/main/resources/python/README.mustache | 18 +++++++++++++++--- .../python/SwaggerPetstore-python/README.md | 18 +++++++++++++++--- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/python/README.mustache b/modules/swagger-codegen/src/main/resources/python/README.mustache index 2c5c75fc764..a3e4325cc81 100644 --- a/modules/swagger-codegen/src/main/resources/python/README.mustache +++ b/modules/swagger-codegen/src/main/resources/python/README.mustache @@ -38,8 +38,7 @@ TODO ## Tests -We use some external dependencies, multiple interpreters and code coverage analysis while running test suite. -Our Makefile handles much of this for you as long as you're 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 $ make test @@ -48,8 +47,21 @@ Ran 7 tests in 19.289s OK ``` +or -You can test in various python versions using: +``` +$ mvn integration-test -rf :PythonPetstoreClientTests +Using 2195432783 as seed +[INFO] ------------------------------------------------------------------------ +[INFO] BUILD SUCCESS +[INFO] ------------------------------------------------------------------------ +[INFO] Total time: 37.594 s +[INFO] Finished at: 2015-05-16T18:00:35+08:00 +[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/): ```sh $ make test-all diff --git a/samples/client/petstore/python/SwaggerPetstore-python/README.md b/samples/client/petstore/python/SwaggerPetstore-python/README.md index 2c5c75fc764..a3e4325cc81 100644 --- a/samples/client/petstore/python/SwaggerPetstore-python/README.md +++ b/samples/client/petstore/python/SwaggerPetstore-python/README.md @@ -38,8 +38,7 @@ TODO ## Tests -We use some external dependencies, multiple interpreters and code coverage analysis while running test suite. -Our Makefile handles much of this for you as long as you're 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 $ make test @@ -48,8 +47,21 @@ Ran 7 tests in 19.289s OK ``` +or -You can test in various python versions using: +``` +$ mvn integration-test -rf :PythonPetstoreClientTests +Using 2195432783 as seed +[INFO] ------------------------------------------------------------------------ +[INFO] BUILD SUCCESS +[INFO] ------------------------------------------------------------------------ +[INFO] Total time: 37.594 s +[INFO] Finished at: 2015-05-16T18:00:35+08:00 +[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/): ```sh $ make test-all