Repository: incubator-stratos Updated Branches: refs/heads/master b8ca2d208 -> 92d8d32db
some format improvements to test docs Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/92d8d32d Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/92d8d32d Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/92d8d32d Branch: refs/heads/master Commit: 92d8d32dbf2ea8b6e05f7530ca3f8f1b352a7d8b Parents: b8ca2d2 Author: Chris Snow <[email protected]> Authored: Wed May 14 21:33:47 2014 +0000 Committer: Chris Snow <[email protected]> Committed: Wed May 14 21:33:47 2014 +0000 ---------------------------------------------------------------------- components/org.apache.stratos.cli/src/test/python/README.md | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/92d8d32d/components/org.apache.stratos.cli/src/test/python/README.md ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.cli/src/test/python/README.md b/components/org.apache.stratos.cli/src/test/python/README.md index 58038e0..e9130fa 100644 --- a/components/org.apache.stratos.cli/src/test/python/README.md +++ b/components/org.apache.stratos.cli/src/test/python/README.md @@ -4,7 +4,9 @@ The CLI integration tests can be run from maven using: +``` mvn -P cli-test integration-test +``` You will need python installed and be running a unix like operating system @@ -14,6 +16,7 @@ Run 'mvn -P cli-test integration-test' to download the test dependencies. Set the environment variables CLI_JAR, PYTHONPATH and WIREMOCK_JAR. For example: +``` # the stratos CLI_JAR export CLI_JAR=~/incubator-stratos/components/org.apache.stratos.cli/target/org.apache.stratos.cli-4.0.0-SNAPSHOT.jar @@ -22,6 +25,7 @@ export PYTHONPATH=$PYTHONPATH:~/incubator-stratos/components/org.apache.stratos. # the wiremock application export WIREMOCK_JAR=~/incubator-stratos/components/org.apache.stratos.cli/target/dependency/wiremock-1.46-standalone.jar +``` The tests are split into three areas: @@ -31,7 +35,9 @@ The tests are split into three areas: After setting the above environment variables, the tests can be executed like this: +``` ./test_common.py +``` The tests have class methods that start wiremock at the start of the tests (setUpClass) and stop it at the end of the test (tearDownClass).
