public override bool Execute() { if (DebugWaitForInput) { this.Log.LogMessageFromText($"PID:{Process.GetCurrentProcess().Id} Attach debugger now.", MessageImportance.High); while (DebugWaitForInput) ; } try { CodeGenOutput.Redirect(new TaskLogOutputWriter(this.Log)); LoadSuiteGenerator suiteGen = new LoadSuiteGenerator(); suiteGen.GenerateSuite(this.ParseSeed(), this.SuiteName, this.SuitePath, this.ParseTestPaths(), this.ParseSearchStrings(), this.ParseFrameworkPaths(), this.GetSuiteConfig()); return true; //return this.Log.HasLoggedErrors; } catch (Exception e) { this.Log.LogErrorFromException(e); return false; } }
public override bool Execute() { if (DebugWaitForInput) { this.Log.LogMessageFromText($"PID:{Process.GetCurrentProcess().Id} Attach debugger now.", MessageImportance.High); while (DebugWaitForInput) { ; } } try { CodeGenOutput.Redirect(new TaskLogOutputWriter(this.Log)); LoadSuiteGenerator suiteGen = new LoadSuiteGenerator(); suiteGen.GenerateSuite(this.ParseSeed(), this.SuiteName, this.SuitePath, this.ParseTestPaths(), this.ParseSearchStrings(), this.ParseFrameworkPaths(), this.GetSuiteConfig(), this.DiscoveryCachePath); return(true); //return this.Log.HasLoggedErrors; } catch (Exception e) { this.Log.LogErrorFromException(e); return(false); } }
public static int GenTests(GenTestsArgs args) { LoadSuiteGenerator suiteGen = new LoadSuiteGenerator(); int seed = args.Seed == 0 ? new Random().Next() : args.Seed; suiteGen.GenerateSuite(seed, args.SuiteName, args.OutputPath, args.TestPaths, args.FileMasks, args.HintPaths, LoadSuiteConfig.Deserialize(args.ConfigPath)); return 0; }
public override bool Execute() { if (DebugWaitForInput) { MessageBox.Show($"PID:{Process.GetCurrentProcess().Id} Attach debugger now.", "Debug GenerateStressSuiteTask", MessageBoxButton.OK); } try { CodeGenOutput.Redirect(new TaskLogOutputWriter(this.Log)); LoadSuiteGenerator suiteGen = new LoadSuiteGenerator(); suiteGen.GenerateSuite(this.ParseSeed(), this.SuiteName, this.SuitePath, this.ParseTestPaths(), this.ParseSearchStrings(), this.ParseFrameworkPaths(), this.GetSuiteConfig(), this.DiscoveryCachePath, this.UseLegacyProject, this.PackageConfigPath); return(true); } catch (Exception e) { this.Log.LogErrorFromException(e); return(false); } }
public override bool Execute() { if (DebugWaitForInput) { MessageBox.Show($"PID:{Process.GetCurrentProcess().Id} Attach debugger now.", "Debug GenerateStressSuiteTask", MessageBoxButton.OK); } try { CodeGenOutput.Redirect(new TaskLogOutputWriter(this.Log)); LoadSuiteGenerator suiteGen = new LoadSuiteGenerator(); suiteGen.GenerateSuite(this.ParseSeed(), this.SuiteName, this.SuitePath, this.ParseTestPaths(), this.ParseSearchStrings(), this.ParseFrameworkPaths(), this.GetSuiteConfig(), this.DiscoveryCachePath, this.UseLegacyProject, this.PackageConfigPath); return true; } catch (Exception e) { this.Log.LogErrorFromException(e); return false; } }