当前位置: 首页>>代码示例>>Python>>正文


Python TestUtils.runTests方法代码示例

本文整理汇总了Python中MiscUtils.TestUtils.runTests方法的典型用法代码示例。如果您正苦于以下问题:Python TestUtils.runTests方法的具体用法?Python TestUtils.runTests怎么用?Python TestUtils.runTests使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MiscUtils.TestUtils的用法示例。


在下文中一共展示了TestUtils.runTests方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: runTestSuite

# 需要导入模块: from MiscUtils import TestUtils [as 别名]
# 或者: from MiscUtils.TestUtils import runTests [as 别名]
def runTestSuite():
    """
    Transfer function for setup.py script ro-manager-test
    """
    base = os.path.dirname(__file__)
    #print "Run test suite assuming base path "+base
    sys.path.insert(0, os.path.normpath(base+"/..") )
    sys.path.insert(0, os.path.normpath(base+"/../..") )
    sys.path.insert(0, os.path.normpath(base+"/../../iaeval/test") )
    sys.path.insert(0, os.path.normpath(base+"/../../sync/test") )
    #print "Path: "+repr(sys.path)
    TestUtils.runTests("TestAll", getTestSuite, sys.argv)
    return 0
开发者ID:almudenaris,项目名称:ro-manager,代码行数:15,代码来源:TestAll.py

示例2:

# 需要导入模块: from MiscUtils import TestUtils [as 别名]
# 或者: from MiscUtils.TestUtils import runTests [as 别名]
    """
    testdict = {
        "unit":
            [ "testUnits"
            , "testNull"
            , "testSetupConfig"
            , "testMinimRead"
            , "testGetConstraints"
            , "testGetConstraint"
            , "testGetModels"
            , "testGetModel"
            , "testGetRequirements"
            , "testGetListRequirements"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestMinimAccess2, testdict, select=select)

if __name__ == "__main__":
    TestUtils.runTests("TestMinimAccess2.log", getTestSuite, sys.argv)

# End.
开发者ID:almudenaris,项目名称:ro-manager,代码行数:32,代码来源:TestMinimAccess2.py

示例3:

# 需要导入模块: from MiscUtils import TestUtils [as 别名]
# 或者: from MiscUtils.TestUtils import runTests [as 别名]
            name        a single named test to be run
    """
    testdict = {
        "unit":
            [ "testUnits"
            , "testSimpleAskQuery"
            , "testSimpleSelectQuery"
            , "testDatatypeFilter"
            , "testIntegerStringFilter"
            , "testRegexFilter"
            , "testDefaultQuery"
            , "testGraphReadTerms"
            , "testLiteralCompare"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestSparqlQueries, testdict, select=select)

if __name__ == "__main__":
    TestUtils.runTests("TestSparqlQueries.log", getTestSuite, sys.argv)

# End.
开发者ID:almudenaris,项目名称:ro-manager,代码行数:32,代码来源:TestSparqlQueries.py

示例4:

# 需要导入模块: from MiscUtils import TestUtils [as 别名]
# 或者: from MiscUtils.TestUtils import runTests [as 别名]
    """
    Get test suite

    select  is one of the following:
            "unit"      return suite of unit tests only
            "component" return suite of unit and component tests
            "all"       return suite of unit, component and integration tests
            "pending"   return suite of pending tests
            name        a single named test to be run
    """
    testdict = {
        "unit":
            [ "testUnits"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestROSupport, testdict, select=select)

if __name__ == "__main__":
    TestUtils.runTests("TestROSupport.log", getTestSuite, sys.argv)

# End.
开发者ID:almudenaris,项目名称:ro-manager,代码行数:32,代码来源:TestROSupport.py

示例5:

# 需要导入模块: from MiscUtils import TestUtils [as 别名]
# 或者: from MiscUtils.TestUtils import runTests [as 别名]
            , "testGetAnnotationByUri"
            , "testGetAnnotationNameByUri"
            , "testMakeAnnotationFilename"
            , "testCreateReadRoAnnotationBody"
            , "testCreateReadFileAnnotationBody"
            , "testGetInitialRoAnnotations"
            , "testAddGetRoAnnotations"
            , "testRemoveGetRoAnnotations"
            , "testReplaceGetRoAnnotations"
            , "testAddGetFileAnnotations"
            , "testRemoveGetFileAnnotations"
            , "testAddGetAllAnnotations"
            , "testAddGetAnnotationValues"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestAnnotationUtils, testdict, select=select)

if __name__ == "__main__":
    TestUtils.runTests("TestAnnotationUtils.log", getTestSuite, sys.argv)

# End.
开发者ID:almudenaris,项目名称:ro-manager,代码行数:32,代码来源:TestAnnotationUtils.py

示例6:

# 需要导入模块: from MiscUtils import TestUtils [as 别名]
# 或者: from MiscUtils.TestUtils import runTests [as 别名]
            , "testSetupConfig"
            , "testEvalAllPresent"
            , "testEvalMustMissing"
            , "testEvalShouldMissing"
            , "testEvalMayMissing"
            , "testEvalFormatSummary"
            , "testEvalFormatDetail"
            , "testEvaluateChecklistCommand"
            , "testEvaluateWfInputs"
            , "testEvaluateWfInputsRDF"
            , "testEvaluateMissing"
            , "testEvaluateMissingRDF"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            , "testEvaluateChecklistRemote"
            ]
        }
    return TestUtils.getTestSuite(TestEvalChecklist, testdict, select=select)

if __name__ == "__main__":
    TestUtils.runTests("TestEvalChecklist.log", getTestSuite, sys.argv)

# End.
开发者ID:almudenaris,项目名称:ro-manager,代码行数:32,代码来源:TestEvalChecklist.py

示例7:

# 需要导入模块: from MiscUtils import TestUtils [as 别名]
# 或者: from MiscUtils.TestUtils import runTests [as 别名]
    Get test suite

    select  is one of the following:
            "unit"      return suite of unit tests only
            "component" return suite of unit and component tests
            "all"       return suite of unit, component and integration tests
            "pending"   return suite of pending tests
            name        a single named test to be run
    """
    testdict = {
        "unit":
            [ "testUnits"
            , "testNull"
            ],
        "component":
            [ "testComponents"
            , "testPush"
            , "testPushZip"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestRosrsSync, testdict, select=select)

if __name__ == "__main__":
    TestUtils.runTests("TestRosrsSync.log", getTestSuite, sys.argv)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:32,代码来源:TestRosrsSync.py

示例8:

# 需要导入模块: from MiscUtils import TestUtils [as 别名]
# 或者: from MiscUtils.TestUtils import runTests [as 别名]
            name        a single named test to be run
    """
    testdict = {
        "unit":
            [ "testUnits"
            , "testNull"
            , "testManifestContent"
            , "testAddAggregatedResources"
            , "testAddAggregatedResourcesCommand"
            , "testGetRoUri"
            , "testGetComponentUri"
            , "testGetComponentUriRel"
            , "testGetComponentUriRelUri"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestManifest, testdict, select=select)

if __name__ == "__main__":
    TestUtils.runTests("TestManifest.log", getTestSuite, sys.argv)

# End.
开发者ID:almudenaris,项目名称:ro-manager,代码行数:32,代码来源:TestManifest.py

示例9:

# 需要导入模块: from MiscUtils import TestUtils [as 别名]
# 或者: from MiscUtils.TestUtils import runTests [as 别名]
    select  is one of the following:
            "unit"      return suite of unit tests only
            "component" return suite of unit and component tests
            "all"       return suite of unit, component and integration tests
            "pending"   return suite of pending tests
            name        a single named test to be run
    """
    testdict = {
        "unit": 
            [ "testUnits"
            , "testCase"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestExample, testdict, select=select)

# Run unit tests directly from command line
if __name__ == "__main__":
    TestUtils.runTests("TestExample", getTestSuite, sys.argv)

# End.
开发者ID:almudenaris,项目名称:ro-manager,代码行数:31,代码来源:TestTestUtils.py

示例10:

# 需要导入模块: from MiscUtils import TestUtils [as 别名]
# 或者: from MiscUtils.TestUtils import runTests [as 别名]
            , "testCollectDirsShallow"
            , "testCollectDirsRecursive"
            , "testCollectDirsRecursiveBaseEndswithSep"
            , "testCollectDirsRecursiveEmptyBase"
            , "testCollectFilesShallow"
            , "testCollectFilesRecursive"
            , "testCollectFilesRecursiveBaseEndswithSep"
            , "testCollectFilesRecursiveEmptyBase"
            , "testCollectAllShallow"
            , "testCollectAllRecursive"
            , "testCollectAllRecursiveBaseEndswithSep"
            , "testCollectAllRecursiveEmptyBase"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestScanDirectories, testdict, select=select)

if __name__ == "__main__":
    TestUtils.runTests("TestScanDirectories.log", getTestSuite, sys.argv)
    #logging.basicConfig(level=logging.DEBUG)
    #runner = unittest.TextTestRunner()
    #runner.run(getTestSuite())
    
开发者ID:almudenaris,项目名称:ro-manager,代码行数:32,代码来源:TestScanDirectories.py

示例11:

# 需要导入模块: from MiscUtils import TestUtils [as 别名]
# 或者: from MiscUtils.TestUtils import runTests [as 别名]
    testdict = {
        "unit":
            [ "testUnits"
            , "testNull"
            , "testEvalQueryTestModelMin"
            , "testEvalQueryTestModelExists"
            , "testEvalQueryTestModel"
            , "testEvalQueryTestReportList"
            , "testEvalQueryTestChembox"
            , "testEvalQueryTestChemboxFail"
            , "testEvalFormatSummary"
            , "testEvalFormatDetail"
            , "testEvaluateRDF"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestEvalQueryMatch, testdict, select=select)

if __name__ == "__main__":
    TestUtils.runTests("TestEvalQueryMatch.log", getTestSuite, sys.argv)

# End.
开发者ID:almudenaris,项目名称:ro-manager,代码行数:32,代码来源:TestEvalQueryMatch.py

示例12:

# 需要导入模块: from MiscUtils import TestUtils [as 别名]
# 或者: from MiscUtils.TestUtils import runTests [as 别名]
            name        a single named test to be run
    """
    testdict = {
        "unit":
            [ "testUnits"
            , "testNull"
            , "testLink"
            , "testLinkType"
            , "testLinkCreated"
            , "testLinkRdfType"
            , "testLinkUnknownUri"
            , "testLinkWithGraph"
            , "testLinkWithNotExistentGraph"
            ],
        "component":
            [ "testComponents"
            ],
        "integration":
            [ "testIntegration"
            ],
        "pending":
            [ "testPending"
            ]
        }
    return TestUtils.getTestSuite(TestLinks, testdict, select=select)

if __name__ == "__main__":
    TestUtils.runTests("TestLinks.log", getTestSuite, sys.argv)

# End.
开发者ID:almudenaris,项目名称:ro-manager,代码行数:32,代码来源:TestLinks.py

示例13: getTestSuite

# 需要导入模块: from MiscUtils import TestUtils [as 别名]
# 或者: from MiscUtils.TestUtils import runTests [as 别名]
def getTestSuite(select="unit"):
    """
    Get test suite

    select  is one of the following:
            "unit"      return suite of unit tests only
            "component" return suite of unit and component tests
            "all"       return suite of unit, component and integration tests
            "pending"   return suite of pending tests
            name        a single named test to be run
    """
    testdict = {
        "unit":
            [ 
            ],
        "component":
            [ "testSnapshot"
            , "testArchive"
            ],
        "integration":
            [ 
            ],
        "pending":
            [ 
            ]
        }
    return TestUtils.getTestSuite(TestEvo, testdict, select=select)

if __name__ == "__main__":
    TestUtils.runTests("TestEvo.log", getTestSuite, sys.argv)
开发者ID:almudenaris,项目名称:ro-manager,代码行数:32,代码来源:TestEvo.py

示例14: getTestSuite

# 需要导入模块: from MiscUtils import TestUtils [as 别名]
# 或者: from MiscUtils.TestUtils import runTests [as 别名]
sys.path.append("../..")

import TestTestUtils
import TestFunctions
import TestCombinators
import TestDomHelpers
import TestScanFiles
import TestScanDirectories
import TestNetUtils
import TestSuperGlobal

# Code to run unit tests from all library test modules
def getTestSuite(select="unit"):
    suite = unittest.TestSuite()
    suite.addTest(TestTestUtils.getTestSuite(select=select))
    suite.addTest(TestFunctions.getTestSuite())
    suite.addTest(TestCombinators.getTestSuite())
    suite.addTest(TestDomHelpers.getTestSuite())
    suite.addTest(TestScanFiles.getTestSuite())
    suite.addTest(TestScanDirectories.getTestSuite())
    suite.addTest(TestNetUtils.getTestSuite())
    suite.addTest(TestSuperGlobal.getTestSuite())
    return suite

from MiscUtils import TestUtils

if __name__ == "__main__":
    TestUtils.runTests("TestAll", getTestSuite, sys.argv)

# End.
开发者ID:almudenaris,项目名称:ro-manager,代码行数:32,代码来源:TestAll.py

示例15:

# 需要导入模块: from MiscUtils import TestUtils [as 别名]
# 或者: from MiscUtils.TestUtils import runTests [as 别名]
    select  is one of the following:
            "unit"      return suite of unit tests only
            "component" return suite of unit and component tests
            "all"       return suite of unit, component and integration tests
            "pending"   return suite of pending tests
            name        a single named test to be run
    """
    testdict = {
        "unit": [
            "testUnits",
            "testNull",
            "testSetupConfig",
            "testGridRead",
            "testGridMatch",
            "testMkMinim",
            "testChecklistEval",
            "testChecklistEvalExcel",
        ],
        "component": ["testComponents"],
        "integration": ["testIntegration"],
        "pending": ["testPending"],
    }
    return TestUtils.getTestSuite(TestMkMinim, testdict, select=select)


if __name__ == "__main__":
    TestUtils.runTests("TestMkMinim.log", getTestSuite, sys.argv)

# End.
开发者ID:wf4ever,项目名称:ro-manager,代码行数:31,代码来源:TestMkMinim.py


注:本文中的MiscUtils.TestUtils.runTests方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。