コード例 #1
0
        public void InputFolderExistsWithoutFailuresWithAbortOnFailuresSuccessful()
        {
            var fileNameToCreate  = TestFolders.DefineTempFile("FileNameToCreate.zip");
            var compressionFolder = CreateValidCompressionFolder();
            var results           = RunExe(fileNameToCreate, compressionFolder, "--abortOnFailures");

            Assert.Equal(0, results.ExitCode);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        private RunResults ExecuteCompress(string options = "")
        {
            var compressionFolder = CreateValidCompressionFolder();
            var fileNameToCreate  = TestFolders.DefineTempFile("FileNameToCreate.zip");
            var results           = DryRunExe(fileNameToCreate, compressionFolder, options);

            return(results);
        }
コード例 #4
0
        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));
        }
コード例 #5
0
        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);
        }
コード例 #6
0
        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);
        }