Repository: qpid-proton Updated Branches: refs/heads/0.12.x 9e852c5f1 -> 8dbbeda61
PROTON-1113: cleanup/improvements on instructions around running python tests against proton-j - Remove stale test details of long-gone JNI proton-c binding. - Use an example for proton-j python test subset that actually exists. - Add some detail of proton-j python test subset usage to the main DEVELOPERS.md file where folks might see it. (cherry picked from commit f11723cde3517e47eb5fb8013717011424a7b104) Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/26768b15 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/26768b15 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/26768b15 Branch: refs/heads/0.12.x Commit: 26768b159fc97c550a70c8c10dec7e3e3b3ab36a Parents: 9e852c5 Author: Robert Gemmell <[email protected]> Authored: Wed Jan 27 12:10:55 2016 +0000 Committer: Robert Gemmell <[email protected]> Committed: Fri Jan 29 17:21:32 2016 +0000 ---------------------------------------------------------------------- DEVELOPERS.md | 7 +++++++ tests/pom.xml | 16 +++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/26768b15/DEVELOPERS.md ---------------------------------------------------------------------- diff --git a/DEVELOPERS.md b/DEVELOPERS.md index 3442671..6231532 100644 --- a/DEVELOPERS.md +++ b/DEVELOPERS.md @@ -92,6 +92,13 @@ Additional packages required for testing the language bindings: # alternatively ruby depedencies on non-RPM based systems $ gem install minitest rspec simplecov +If wishing to run a particular subset of python tests against proton-j, a +pattern can be set via the Java system property "proton.pythontest.pattern" +when running the Maven build directly: + + # Run the tests in transport.py class ClientTransportTest against proton-j: + $ mvn test -Dproton.pythontest.pattern='proton_tests.transport.ClientTransportTest.*' + Mailing list ------------ http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/26768b15/tests/pom.xml ---------------------------------------------------------------------- diff --git a/tests/pom.xml b/tests/pom.xml index aa40ace..16fa088 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -30,21 +30,19 @@ <version>0.12.0-beta</version> </parent> - <description>The Proton system tests execute against either the Java or the C implementations, -based on the chosen profile. + <description>The Proton python system tests execute against the Java or C implementation, using Maven (via this pom) and CMake/CTest respectively. -To execute, "mvn test". +To run the tests against proton-j, execute: + +mvn test Example of advanced usage (all of the -D flags are optional): mvn test \ --Dproton.pythontest.pattern='proton_tests.transport.TransportTest.*' \ +-Dproton.pythontest.pattern='proton_tests.transport.ClientTransportTest.*' \ -Dproton.pythontest.invocations=20 \ --Dproton.pythontest.always_colorize=true \ --Dproton-c-build-dir=/path/to/build/dir - -By default, the proton-jni profile looks for the JNI jar and native libraries under -directory <basedir>/build/proton-c.</description> +-Dproton.pythontest.always_colorize=true + </description> <scm> <url>http://svn.apache.org/viewvc/qpid/proton/</url> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
