def launchTestsDelayed(): from ngSkinTools import log as logModule logModule.LoggerFactory = logModule.SimpleLoggerFactory() from ngSkinToolsTest.runInMaya import storeTestResult from ngSkinToolsTest.runInMaya import runAllTests runAllTests() storeTestResult()
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")
def openMainWindow(): ''' opens main window. shelf setup with reload: .. code-block:: python from ngSkinTools.debug import reloader reload(reloader) reloader.unload() from ngSkinToolsTest import debugToolbarButtons debugToolbarButtons.openMainWindow() ''' from ngSkinTools import log log.LoggerFactory = log.SimpleLoggerFactory() from ngSkinTools.context import applicationContext from ngSkinToolsTest.debugApplicationSetup import DebugApplicationSetup applicationContext.setup = DebugApplicationSetup() from ngSkinTools.utils import Utils Utils.DEBUG_MODE = True from ngSkinTools.ui.mainwindow import MainWindow MainWindow.open()
''' All tests assembled into one test suite ''' import logging from ngSkinTools import log from ngSkinToolsTest.cutCopyPasteActionsTest import CopyPasteActionsTest log.LoggerFactory = log.SimpleLoggerFactory(logging.WARN) from ngSkinToolsTest.influenceNameTransformsTest import InfluenceNameTransformsTest from ngSkinToolsTest.actionsTest import ActionsTest, BaseActionTest from ngSkinToolsTest.versionTest import VersionTest from ngSkinToolsTest.versioncheckTest import VersionCheckTest from ngSkinToolsTest.importExportTest import ImportExportTest,\ VariousImportScenarios from ngSkinToolsTest.versioncheckIntegrationTest import VersionCheckIntegrationTest from ngSkinToolsTest.testInheritance import TestInheritance from ngSkinToolsTest.loggingTest import DummyLoggingTest, LoggingTest from ngSkinToolsTest.ui.updateCheckWindowTest import UpdateCheckThreadTest from ngSkinToolsTest.ui.mainWindowTest import MainWindowTest from ngSkinToolsTest.utilities.importInfluencesTest import ImportInfluencesTest from ngSkinToolsTest.influenceNameFilterTest import InfluenceNameFilterTest from ngSkinToolsTest.mllInterfaceTest import MllInterfaceTest InfluenceNameTransformsTest ActionsTest BaseActionTest VersionTest VersionCheckTest ImportExportTest VariousImportScenarios VersionCheckIntegrationTest