sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27004
Re: [Question #251396]: How to create xml report using xmltestrunner for test suite
Question #251396 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/251396
RaiMan proposed the following answer:
this worked for me:
import unittest
import XMLTestRunner
class myTest(unittest.TestCase):
def test1(self):
assert True
suite = unittest.TestLoader().loadTestsFromTestCase(myTest)
XMLTestRunner.XMLTestRunner(file("/Users/rhocke/testOut.txt",
"w")).run(suite)
# content of testOut.txt
<testsuite errors="0" failures="0" name="unittest.suite.TestSuite" tests="1" time="0.001">
<testcase classname="__main__.myTest" name="test1" time="0.0000"></testcase>
<system-out><![CDATA[]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.