sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32604
Re: [Question #267479]: Pyunit setup doesn't fail, but runs 0 tests and then OK
Question #267479 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267479
RaiMan proposed the following answer:
a working example having all .sikuli in the same folder:
# main.sikuli
import unittest
class UnitTestX(unittest.TestCase):
def testBatchview(self):
batchviewval = runScript("./testUT1") # according to the docs!
self.assertEqual(batchviewval, 1)
suite = unittest.TestLoader().loadTestsFromTestCase(UnitTestX)
unittest.TextTestRunner(verbosity=2).run(suite)
# testUT1.sikuli
from sikuli import *
popup("from UT1")
exit(1)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.