Running unittest Tests From the Command Line


Home » Support » Index of All Documentation » Wing IDE Reference Manual » Unit Testing »

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. The test runner script is src/testing/runners/run_unittest_xml.py within the Wing install directory and should be run with the python interpreter that the tests are to run under.

Only the unittest test runner supports running from the command line

Available command line options are:

  • --output=file=<filename>: Write results to named file. Results are written to stdout if this option is not specifed
  • --append-to-file: Append results to file specified via the --output-file= option
  • --one-process-per-module: Run each module in a separate module
  • --pattern=<glob filename pattern>: Run tests in each filename matching glob pattern. This option may be repeated multiple times with different glob patterns. It also turns on the --one-process-per-module option.

« 11.1. Running TestsTable of Contents12. Debugger »