public ProjectRunner(string workingDir, FeatureRunner featureRunner, Task <List <FeatureEvidence> > projectBuilderTask) { this.featureRunner = featureRunner; this.projectBuilderTask = projectBuilderTask; this.workingDir = workingDir + projectFolder; }
private void ExecuteTheCheck() { var pr = new ProcessDetails(processName, workingDir, arguments); var processOutput = new FeatureRunner().Execute(pr); if (processOutput.Output == null) { UnitTestEvidence.SetInconclusive(UnitTestEvidence.Evidence); return; } Output = processOutput.Output; ProcessResult(Output); }
public ProcessOutput Execute(string solutionPath) { try { var outputFilePath = Path.GetTempFileName(); try { var proc = new ProcessDetails(processName, workingDir, solutionPath + arguments + outputFilePath); var processOutput = new FeatureRunner().Execute(proc); processOutput.Output = File.ReadAllText(outputFilePath); return(processOutput); } finally { File.Delete(outputFilePath); } } catch (IOException) { return(default);
public ProjectBuilder(string workingDir, FeatureRunner featureRunner) { this.workingDir = workingDir; this.featureRunner = featureRunner; }