Broadsword -- testrunner Documentation
Where is testrunner
testrunner lives in the tools repository under the broadsword project.
svn co svn+ssh://svn.osafoundation.org/svn/tools/broadsword/trunk/testrunner.py testrunner.py
What is testrunner
testrunner is a script that allows one to run one test, or a suite of tests from the command line and specify any parameters you need. This simplifies the testing process by allowing a tester to run many tests quickly from the command line, changing parameters as needed.
What is defined in testrunner
testrunner has the following methods:
run_test method: This takes a module and a test as parameters, instantiates the test class and runs the test with the arguments either passed or defaulted by the user.
run_suite method: This method takes a dictionary of tests and runs each one, generating and keeping track of output. When the whole suite of tests has been run by calling run_test for each, a final summary of results is displayed.
How do I use testrunner
A guide to running tests with testrunner.py