1 | import unittest |
---|
2 | |
---|
3 | from zope.testing import doctestunit |
---|
4 | from zope.component import testing |
---|
5 | from Testing import ZopeTestCase as ztc |
---|
6 | |
---|
7 | from Products.Five import zcml |
---|
8 | from base import FunctionalTestCase |
---|
9 | |
---|
10 | def test_suite(): |
---|
11 | return unittest.TestSuite([ |
---|
12 | |
---|
13 | # Unit tests |
---|
14 | #doctestunit.DocFileSuite( |
---|
15 | # 'README.txt', package='cmsinfo.productinfo', |
---|
16 | # setUp=testing.setUp, tearDown=testing.tearDown), |
---|
17 | |
---|
18 | doctestunit.DocTestSuite( |
---|
19 | module='Products.qPingTool.PingTool', |
---|
20 | setUp=testing.setUp, tearDown=testing.tearDown), |
---|
21 | |
---|
22 | doctestunit.DocTestSuite( |
---|
23 | module='Products.qPingTool.adapter', |
---|
24 | setUp=testing.setUp, tearDown=testing.tearDown), |
---|
25 | |
---|
26 | # Integration tests that use PloneTestCase |
---|
27 | #ztc.ZopeDocFileSuite( |
---|
28 | # 'README.txt', package='cmsinfo.productinfo', |
---|
29 | # test_class=TestCase), |
---|
30 | |
---|
31 | ztc.FunctionalDocFileSuite( |
---|
32 | 'browser.txt', package='Products.qPingTool.tests', |
---|
33 | test_class=FunctionalTestCase), |
---|
34 | |
---|
35 | ]) |
---|
36 | |
---|
37 | if __name__ == '__main__': |
---|
38 | unittest.main(defaultTest='test_suite') |
---|