← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #171632]: [IDE Bug] pyhton unittests with sikuli

 

Question #171632 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/171632

    Status: Open => Answered

RaiMan proposed the following answer:
Something like that runs perfectly in IDE:

import unittest

class TestSik(unittest.TestCase):
    def setUp(self):
        print "in setUp"
    def test1(self):
        print "in Test1"
        assert False
    def test2(self):
        print "in Test2"
        assert False
    def tearDown(self):
        print "in tearDown"

suite = unittest.TestLoader().loadTestsFromTestCase(TestSik)
unittest.TextTestRunner(verbosity=2).run(suite)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.