public void Cleanup() { if (_executors != null) { _executors.Cleanup(); _executors = null; } }
public TestExecutionRun(string dbPath, ITestExecutorCollection exec, bool generateDump = false) { _executors = exec; _generateDump = generateDump; _unitTestDb = new SqliteDb(); _unitTestDb.Open(dbPath); _unitTestVm = new SqliteVm(_unitTestDb, false); _unitTestResultVm = new SqliteVm(_unitTestDb, false); }
private static int ExecuteTest(string apiType, string dumpFile, ref int testsRun, TestLoggerFile logger, bool isEnterprise) { ITestExecutorCollection exec = null; if (apiType == ApiTypes.Platform) { exec = new MapGuideTestExecutorCollection(userInfo, siteConn); } int ret = 0; if (exec != null) { //"validate" is currently the only test execution mode supported exec.Initialize("validate", dumpFile); ret += exec.Execute(ref testsRun, logger, isEnterprise); exec.Cleanup(); } return(ret); }