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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to