← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #694740]: Having issue using Htmltestrunner and unittest in Sikuli IDE 1.1.3

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
SikuliX 1.1.3 is no longer supported. Please use 2.0.4 according to the
download page.

Make some basic tests with minimal scripts and then move into more
complex constructs.

reload() is generally not needed for any Python module, that is not changed, while SikuliX IDE is running.
even for imported scripts, that are open and changed in the same IDE session, with 2.0.4 even there is no reload() necessary (done internally automatically.

like so:

import HTMLTestRunner
import unittest

class MyTest(unittest.TestCase):
    def test1(self):
        assert True
    def test2(self):
        assert False

suite= unittest.TestLoader().loadTestFromTestCase(MyTest)

runner= HTMLTestRunner.HTMLTestRunner()
runner.run(suite)

If this works, go on with your ideas.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.