Guys, We have unittest cases for VDSM REST API at hand and expect to merge them with VDSM test harness. So would someone provide a schedule of VDSM test release plan? Will it be released with VDSM or in another repository?We'd like to work with it as soon as possible. Thanks a lot!
On Wed, Feb 22, 2012 at 11:05:50PM +0800, Royce Lv wrote:
Guys, ***** We have unittest cases for VDSM REST API at hand and expect to merge them with* VDSM test harness. So would someone provide a schedule of VDSM test release plan? Will it be released with VDSM or in another repository?We'd like to work with it as soon as possible. **** Thanks a lot!
How about not waiting for this any longer?
I suggest that we use simple unittest. If you push test modules as the following, I'm sure we can integrate it with any harness we come up with in the future. Just throw your modules under /test!
(Correct me, Federico, if you had something else in mind)
import unittest as ut
class MyTest(ut.TestCase): def testThis(self): pass def testThat(self): pass
def suite(): tests = {MyTest: ["testThis", "testThat"]} resSuite = ut.TestSuite() for testcase, methods in tests.iteritems(): resSuite.addTests(map(testcase, methods))
return resSuite
----- Original Message -----
From: "Dan Kenigsberg" danken@redhat.com To: "Royce Lv" lvroyce0210@gmail.com, "Federico Simoncelli" fsimonce@redhat.com Cc: vdsm-devel@lists.fedorahosted.org Sent: Monday, February 27, 2012 4:37:20 PM Subject: Re: [vdsm] vdsm test release plan
On Wed, Feb 22, 2012 at 11:05:50PM +0800, Royce Lv wrote:
Guys, ***** We have unittest cases for VDSM REST API at hand and expect to merge them with* VDSM test harness. So would someone provide a schedule of VDSM test release plan? Will it be released with VDSM or in another repository?We'd like to work with it as soon as possible. **** Thanks a lot!
How about not waiting for this any longer?
I suggest that we use simple unittest. If you push test modules as the following, I'm sure we can integrate it with any harness we come up with in the future. Just throw your modules under /test!
(Correct me, Federico, if you had something else in mind)
You're correct Dan. I just pushed a stub that I prepared some time ago:
import unittest as ut
class MyTest(ut.TestCase): def testThis(self): pass def testThat(self): pass
def suite(): tests = {MyTest: ["testThis", "testThat"]} resSuite = ut.TestSuite() for testcase, methods in tests.iteritems(): resSuite.addTests(map(testcase, methods))
return resSuite
Dan & Federico, This is really a good news~ Our VDSM-REST test uses simple unittest as you expected, I'll get my hands on adjusting my code to the stub you pushed. Thank you!
2012/2/28 Federico Simoncelli fsimonce@redhat.com
----- Original Message -----
From: "Dan Kenigsberg" danken@redhat.com To: "Royce Lv" lvroyce0210@gmail.com, "Federico Simoncelli" <
fsimonce@redhat.com>
Cc: vdsm-devel@lists.fedorahosted.org Sent: Monday, February 27, 2012 4:37:20 PM Subject: Re: [vdsm] vdsm test release plan
On Wed, Feb 22, 2012 at 11:05:50PM +0800, Royce Lv wrote:
Guys, ***** We have unittest cases for VDSM REST API at hand and expect to merge them with* VDSM test harness. So would someone provide a schedule of VDSM test release plan? Will it be released with VDSM or in another repository?We'd like to work with it as soon as possible. **** Thanks a lot!
How about not waiting for this any longer?
I suggest that we use simple unittest. If you push test modules as the following, I'm sure we can integrate it with any harness we come up with in the future. Just throw your modules under /test!
(Correct me, Federico, if you had something else in mind)
You're correct Dan. I just pushed a stub that I prepared some time ago:
import unittest as ut
class MyTest(ut.TestCase): def testThis(self): pass def testThat(self): pass
def suite(): tests = {MyTest: ["testThis", "testThat"]} resSuite = ut.TestSuite() for testcase, methods in tests.iteritems(): resSuite.addTests(map(testcase, methods))
return resSuite
-- Federico
vdsm-devel@lists.stg.fedorahosted.org