[wingide-users] problems with the command line unittest runner

Pablo Adames pablo_adames at yahoo.com
Thu Aug 16 21:23:28 MDT 2012

I have difficulty with the syntax of the command line test runner:
The Wing IDE help documentation says the option --output=file=<filename> should write xml output file when running src/testing/runners/run_unittest_xml.py 

I have tried also --output=<filename>, --outputfile=<filename> unsuccessfully. It does not recognize the parameter.
So I get a stdout text that is not XML parser ready unless I edited it manually(!)
I tried also the parallel test execution which is probably the most exciting feature that would make the tool worth using and it does not recognize it either:
--one-process-per-module as per the help documentation.
The script source code looks for the parameter --one-module-per-process in line 55:
process_per_module = wingtest_common.PopFromArgv(argv, '--one-module-per-process')
So I use it but it does not recognize it either (a sample command line and output after my signature)
Is this tool ready for use or is it experimental?

PS C:\Pablo\PIPEFLO-Regtest> python "C:\Program Files (x86)\Wing IDE 
4.1\src\testing\runners\run_unittests_xml.py"  --one-module-per-process 
<test-results><exception syntax="no">
Import by filename is not supported.
<frame lineno="148" filename="C:\Program Files (x86)\Wing IDE 
4.1\src\testing\runners\run_unittests_xml.py" name="RunInSingleDir">
       unittest.TestProgram(argv=argv, module=None, testRunner=runner)</frame>
<frame lineno="94" filename="C:\Python27\lib\unittest\main.py" name="__init__">        self.parseArgs(argv)</frame>
<frame lineno="149" filename="C:\Python27\lib\unittest\main.py" 
name="parseArgs">            self.createTests()</frame>
<frame lineno="158" filename="C:\Python27\lib\unittest\main.py" name="createTests">
<frame lineno="128" filename="C:\Python27\lib\unittest\loader.py" 
name="loadTestsFromNames">        suites = [self.loadTestsFromName(na
me, module) for name in names]</frame>
<frame lineno="91" filename="C:\Python27\lib\unittest\loader.py" 
name="loadTestsFromName">                    module = 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/wingide-users/attachments/20120816/a060650e/attachment.html>

More information about the wingide-users mailing list