Sikuli-X - Unit test not working?

Asked by Alex Stevens

Hello,

I am unable to get the unit test working in Sikuli-x. I noticed a few bugs reported in December - Could you confirm if the unit test functionality is currently working?

I am following the example code in the documentation but when I click on view/unit test in sikuli, no tests appear in the unit test section. When I then click on 'Run' (unit test), the IDE interface leaving the unit test window open - with no tests running.

Any help appreciated.
Cheers,
Alex.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Stevens
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Is a normal script (just a popup ("hallo") ) running?

If yes, then make the following test:

--1. Enter this in IDE:

def setUp(self):
 print "in Setup"

def tearDown(self):
 print "in tearDown"

def test_empty(self):
 print "in test"
 return True

--2. save the script e.g. test.sikuli (the script has to be saved after each change of your script before the next testrun)

-- 3. go to Unittest Frame (ctrl/cmd-u) and click run. this should run on all systems.

Revision history for this message
Alex Stevens (alex-stevens-garradhassan) said :
#2

Hi RaiMan,

Thanks, this information was very useful. The unit test functionality is now working for me.

Regards,
Alex.