public ProjectRunner(string workingDir, FeatureRunner featureRunner, Task <List <FeatureEvidence> > projectBuilderTask)
        {
            this.featureRunner      = featureRunner;
            this.projectBuilderTask = projectBuilderTask;

            this.workingDir = workingDir + projectFolder;
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
Esempio n. 4
0
 public ProjectBuilder(string workingDir, FeatureRunner featureRunner)
 {
     this.workingDir    = workingDir;
     this.featureRunner = featureRunner;
 }