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. Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/f11723cd Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/f11723cd Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/f11723cd Branch: refs/heads/master Commit: f11723cde3517e47eb5fb8013717011424a7b104 Parents: 197d83f Author: Robert Gemmell <[email protected]> Authored: Wed Jan 27 12:10:55 2016 +0000 Committer: Robert Gemmell <[email protected]> Committed: Wed Jan 27 17:31:25 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/f11723cd/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/f11723cd/tests/pom.xml ---------------------------------------------------------------------- diff --git a/tests/pom.xml b/tests/pom.xml index 82d5fb3..8380a96 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -30,21 +30,19 @@ <version>0.13.0-SNAPSHOT</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]
