← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #178068]: Creating regression suites from unit tests

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
This is not possible currently with Sikuli IDE's unit test feature.

You have to use Jython's/Python's unit test feature directly.

This is what you have to do:

--- in each of your unitTestx.sikuli

currently there are a bunch of "def testxxxx(self):" and may be setUp
and tearDown.

at the beginning of each script put:

from sikuli import *
import unittest

class UnitTestX(unit test.Testcase):

and indent the rest of the script one level, so that from now on, all
the def's belong to your Testcase class.

save the script

*** To be continued;-) I will come back later, since I have to go to
another Mac

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