Can not run unit tests

Asked by belam on 2010-02-02

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Fabrício Ferrari de Campos
Solved:
2010-02-03
Last query:
2010-02-03
Last reply:
2010-02-03

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.

belam (belamate) said : #2

Thanks Fabrício, that solved my question.

belam (belamate) said : #3

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

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?

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.