Example #1
0
if coverage:
    coverage.erase()
    coverage.start()

    coverage.exclude('if __name__ == "__main__":')

import dabo.ui

dabo.ui.loadUI('wx')

import db
import biz
import lib
import ui

suiteList = [db.suite(), biz.suite(), lib.suite(), ui.suite()]

#import any tests for the main dabo folder
import Test_dColors

suiteList.append(unittest.TestLoader().loadTestsFromModule(Test_dColors))
import Test_dObject

suiteList.append(unittest.TestLoader().loadTestsFromModule(Test_dObject))

allTiersTestSuite = unittest.TestSuite(suiteList)
unittest.TextTestRunner(verbosity=2).run(allTiersTestSuite)

if coverage:
    coverage.stop()
    #You can uncomment this to get test coverage on a particular module, but if you want to
Example #2
0
File: tests.py Project: raony/NAIF
def suite():
    return unittest.TestSuite([db.suite(),
                               metrics.suite(),
                               analysis.suite(),
                               ])
Example #3
0
if coverage:
	coverage.erase()
	coverage.start()

	coverage.exclude('if __name__ == "__main__":')

import dabo.ui
dabo.ui.loadUI('wx')

import db
import biz
import lib
import ui

suiteList = [db.suite(), biz.suite(), lib.suite(), ui.suite()]

#import any tests for the main dabo folder
import Test_dColors
suiteList.append(unittest.TestLoader().loadTestsFromModule(Test_dColors))
import Test_dObject
suiteList.append(unittest.TestLoader().loadTestsFromModule(Test_dObject))


allTiersTestSuite = unittest.TestSuite(suiteList)
unittest.TextTestRunner(verbosity=2).run(allTiersTestSuite)

if coverage:
	coverage.stop()
	#You can uncomment this to get test coverage on a particular module, but if you want to
	#see the entire report for dabo, run "python CoverageReport.py".  I would pipe it to a file though