Wing's unittest test runner can be run from the command line and store results in an XML file that can be loaded into Wing via the Load Test Results item in the Testing menu. The test runner script is src/testing/runners/run_unittest_xml.py within the install directory listed in Wing's About box. It should be run with the Python interpreter that should be used for the selected tests as follows:

/path/to/python /path/to/src/testing/runners/run_unittests_xml.py [options] -q testModule.className.testName

Where [options] is replaced with any of the command line options listed below and the test specification is the test specification used when running with the standard library's unittest module. The test specification above consists of testModule is the module name (without .py), className is the test class name, and testName is the name of the test to run. To run all tests in a class, omit the testName. To run all tests in a module, omit also the className.

Available command line options are:

Note: Only the unittest test runner supports running from the command line. The other test runners cannot be used this way.