def runUnitTests(): from ngSkinTools.debug import reloader reload(reloader) reloader.unload() from ngSkinTools import log as logModule logModule.LoggerFactory = logModule.SimpleLoggerFactory() logger = logModule.LoggerFactory.getLogger("VersionChecker") logger.info("starting tests...") from ngSkinToolsTest.runInMaya import runTests runTests() logger.info("done")
def runAllTests(): ''' .. code-block:: python from ngSkinToolsTest import debugToolbarButtons reload(debugToolbarButtons) debugToolbarButtons.runAllTests() ''' from ngSkinTools.debug import reloader reload(reloader) reloader.unload() from ngSkinTools import log as logModule logModule.LoggerFactory = logModule.SimpleLoggerFactory() logger = logModule.LoggerFactory.getLogger("VersionChecker") logger.info("starting tests...") from ngSkinToolsTest.runInMaya import runAllTests runAllTests() logger.info("done")