sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06745
Re: [Question #178068]: Creating regression suites from unit tests
Question #178068 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/178068
RaiMan proposed the following answer:
--- correction to previous comment:
class UnitTestX(unit test.TestCase):
--- create a mainTest.sikuli
as a base template, to get a feeling:
import unittest
from unitTestA import * # supposing, scripts live in same directory
suite = unittest.TestLoader().loadTestsFromTestCase(UnitTestA) # see comment
unittest.TextTestRunner(verbosity=2).run(suite)
-- comment
loads all def()'s from class UnitTestA which should be in unitTestA.sikuli.
To find out more about how to select test cases from TestCase classes, have a look at the docs at
http://docs.python.org/library/unittest.html
Take Care: things marked as available 2.6 or later might not be
available in Sikuli's Jython 2.5.2
Another must: Use the latest version of Sikuli X-1.0 found at
http://sikuli.org/download.shtml#last-build
After making some further tests and evaluations, come back if you have
more questions.
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.