Emmanuel Okyere wrote:
Hello all:
My name is Emmanuel, and I am currently doing some work on a Javascript
client for rabbitmq. Currently, as part of the rabbit automated tests,
the qpid python client tests are run against the rabbit server.
Hi Emmanuel! A Javascript client sounds great.
I noticed that:
1. after specifying the spec file to run against the server, the tests
automatically include those in the python/tests folder (although you can
use the ignore file to configure what tests are run)
Yes, there was some debate on the list about that. As you say you can
always add those tests to the ignore file, but perhaps a simpler option
for turning of the default tests would indeed be useful.
2. the "../specs" folder is assumed (our specs folder resides in
../../docs/specs, from where we run our tests, so this causes an error)
Thats true for using the short cut '0-8' etc as the spec parameter.
However you can pass in any set of files you like (e.g. run-tests -s
../my_path/my_file.xml -e ../another_path/another_file.xml)
I have made local changes that:
a. allows the 'specs' folder to be passed by a command option
-F/--spec-folder (defaults to ../specs)
b. gives the option to run the 'default' tests in the 'tests' folder,
with command option -D/--default-tests; if -F above is passed, -D is assumed
c. if -F and/or -D is/are not passed, then it runs only the tests
specified by the passed spec file
Please find these attached as a patch if these changes are useful.
Rafi is really the python maintainer; he's not around this week but will
be next week. Thanks for the patch though!