public void InputFolderExistsWithoutFailuresWithAbortOnFailuresSuccessful() { var fileNameToCreate = TestFolders.DefineTempFile("FileNameToCreate.zip"); var compressionFolder = CreateValidCompressionFolder(); var results = RunExe(fileNameToCreate, compressionFolder, "--abortOnFailures"); Assert.Equal(0, results.ExitCode); }
public void FolderDoesntExistErrors() { var fileNameToCreate = TestFolders.DefineTempFile("FileNameToCreate.zip"); var results = RunExe(fileNameToCreate, "doesntExistFolder"); Assert.NotEqual(0, results.ExitCode); Assert.Contains("Input folder 'doesntExistFolder' cannot be found.", results.StandardError); }
private RunResults ExecuteCompress(string options = "") { var compressionFolder = CreateValidCompressionFolder(); var fileNameToCreate = TestFolders.DefineTempFile("FileNameToCreate.zip"); var results = DryRunExe(fileNameToCreate, compressionFolder, options); return(results); }
public void ValidInputSuccessful() { var compressionFolder = CreateValidCompressionFolder(); var fileNameToCreate = TestFolders.DefineTempFile("FileNameToCreate.zip"); var results = RunExe(fileNameToCreate, compressionFolder); Assert.Equal(0, results.ExitCode); Assert.True(File.Exists(fileNameToCreate)); }
public void InputFolderExistsWithFailuresWithAbortOnFailuresErrors() { var fileNameToCreate = TestFolders.DefineTempFile("FileNameToCreate.zip"); var compressionFolder = CreateValidCompressionFolderWithFailures(); var results = RunExe(fileNameToCreate, compressionFolder, "--abortOnFailures"); Assert.NotEqual(0, results.ExitCode); Assert.Contains("Input folder '" + compressionFolder + "' has recorded failures.", results.StandardError); }
public void InputFolderExistsWithoutBuildMetricsErrors() { var compressionFolder = TestFolders.CreateTempFolder(); var fileNameToCreate = TestFolders.DefineTempFile("FileNameToCreate.zip"); var results = RunExe(fileNameToCreate, compressionFolder); Assert.NotEqual(0, results.ExitCode); Assert.Contains("Input folder '" + compressionFolder + "' is not recognised as Coverity Scan results.", results.StandardError); }