← Back to team overview

sikuli-driver team mailing list archive

[Bug 1189892] Re: [request] unittest2/HTMLTestRunner ... as Sikuli package content or extension

 

** Changed in: sikuli
       Status: In Progress => Fix Released

** Changed in: sikuli
    Milestone: 2.0.0 => None

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1189892

Title:
  [request] unittest2/HTMLTestRunner ... as Sikuli package content or
  extension

Status in Sikuli:
  Fix Released

Bug description:
  Hi all,

  I'm experiencing some problems when using current Sikuli's Jython unittets module.
  In the current version (I guess unittest 1.63) some of most useful unittest features are not (yet) available.
  For example I'd like to skip some Sikuli testcases by using an instruction like : @unittest.skipIf(a_conditon) just before the TestCase() method.

  I'm still trying to look for a workaround for that.
  Ideally I'd like to use some script options passed by the Sikuli commandline to the Jython's sys.argv. 
  For example : Sikuli-IDE.bat -r mainTestClass.sikuli --args --suite suite1 --testcase test1,test2,test5 
  In the mainTestClass.sikuli I'll parse sys.argv and so I'll run only testsuite1.sikuli and only testcases test1() , test2() and test3() among all testcases defined in that testsuite.sikuli class.

  Any idea about when Sikuli will integrate a new unittest version ?
  Or, any idea about how to skip a testcase defined in a testsuite class with the current unittest version ?

  Thanks a lot,
  Rayan

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1189892/+subscriptions


References