Can not run unit tests

Asked by belam

I couldn't run any unit tests, is there more to be installed other than Java Runtime?
The IDE is functional. I have copied the example unit test script in the editor, but no test shows up in the unit test window. When clicking the Run button of the Unit test pane, nothing happens, and the IDE window dissappears, there is no way to get back to it other than restarting the IDE.
Some guidance or example would be much appreciated.
thank you,
BM

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Fabrício Ferrari de Campos
Solved:
Last query:
Last reply:
Revision history for this message
Best Fabrício Ferrari de Campos (ffc-fabricio) said :
#1

Hi Belam!

You need to create a method beginning with "test" to run unit tests, for example:

def testHelloWorld(self):
   print("Hello World!")

I hope I have helped.

Revision history for this message
belam (belamate) said :
#2

Thanks Fabrício, that solved my question.

Revision history for this message
belam (belamate) said :
#3

Another important change I made is respecting the "indentation" format of test method body.

Revision history for this message
PFMan (liuchen) said :
#4

HELP!
I writed code like this in my IDE:

def testHelloWorld(self):
   print("Hello World!")

click the RUN button , but nothing happened, Is there something I missed?

Revision history for this message
PFMan (liuchen) said :
#5

Bye the way, I use WindowsXP SP2, the IDE version is Sikuli-IDE-win-20100201.zip.
Any suggestion will be appreciated.