Example #1
0
 private void tryToConfigure(CoreSection core)
 {
     try
     {
         StartPaused       = core.StartPaused.Value;
         _watchDirectories = core.WatchDirectories.Value;
         _buildExecutables.AddRange(core.BuildExecutables.Value);
         _nunitTestRunners.AddRange(core.NUnitTestRunner.Value);
         _msTestRunner.AddRange(core.MSTestRunner.Value);
         _xunitTestRunner.AddRange(core.XUnitTestRunner.Value);
         _mspecTestRunner.AddRange(core.MSpecTestRunner.Value);
         _codeEditor                           = core.CodeEditor.Value;
         _debuggingEnabled                     = core.DebuggingEnabled.Value;
         GrowlNotify                           = core.GrowlNotify.Value;
         NotifyOnRunStarted                    = core.NotifyOnRunStarted.Value;
         NotifyOnRunCompleted                  = core.NotifyOnRunCompleted.Value;
         TestAssembliesToIgnore                = core.TestAssembliesToIgnore.Value;
         TestCategoriesToIgnore                = core.TestCategoriesToIgnore.Value;
         _ignoreFile                           = core.WatchIgnoreFile.Value;
         FileChangeBatchDelay                  = core.FileChangeBatchDelay.Value;
         CustomOutputPath                      = core.CustomOutputPath.Value;
         RerunFailedTestsFirst                 = core.RerunFailedTestsFirst.Value;
         WhenWatchingSolutionBuildSolution     = core.WhenWatchingSolutionBuildSolution.Value;
         UseAutoTestTestRunner                 = core.UseAutoTestTestRunner.Value;
         UseLowestCommonDenominatorAsWatchPath = core.UseLowestCommonDenominatorAsWatchPath.Value;
         WatchAllFiles                         = core.WatchAllFiles.Value;
         _keys = core.Keys;
     }
     catch (Exception ex)
     {
         DebugLog.Debug.FailedToConfigure(ex);
         throw;
     }
 }
		public void Should_read_merge_from_node()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.WatchDirectories.ShouldMerge.ShouldBeTrue();
			section.WatchDirectories.ShouldExclude.ShouldBeFalse();
		}
Example #3
0
		private CoreSection getConfiguration()
		{
			var core = new CoreSection();
			var configFile = Path.Combine(PathParsing.GetRootDirectory(), "AutoTest.config");
			if (!File.Exists(configFile))
			{
				Debug.ConfigurationFileMissing();
				return core;
			}
			core.Read(configFile);
			return core;
		}
Example #4
0
        private CoreSection getConfiguration(string configFile)
        {
            var core = new CoreSection();

            if (!File.Exists(configFile))
            {
                Debug.ConfigurationFileMissing();
                return(core);
            }
            core.Read(configFile);
            return(core);
        }
Example #5
0
 private void tryToConfigure(CoreSection core)
 {
     try
     {
         _watchDirectories = core.WatchDirectories.ToArray();
         _buildExecutables = core.BuildExecutables;
         _nunitTestRunners = core.NUnitTestRunner;
         _msTestRunner = core.MSTestRunner;
         _xunitTestRunner = core.XUnitTestRunner;
         _codeEditor = core.CodeEditor;
         _debuggingEnabled = core.DebuggingEnabled;
     }
     catch (Exception ex)
     {
         DebugLog.Debug.FailedToConfigure(ex);
         throw;
     }
 }
Example #6
0
        private void tryToConfigure(CoreSection core)
        {
            try
            {
                _watchDirectories = core.WatchDirectories.ToArray();
                _buildExecutables = core.BuildExecutables;
                _nunitTestRunners = core.NUnitTestRunner;
                _msTestRunner = core.MSTestRunner;
                _xunitTestRunner = core.XUnitTestRunner;
                _codeEditor = core.CodeEditor;
                _debuggingEnabled = core.DebuggingEnabled;
				GrowlNotify = core.GrowlNotify;
				NotifyOnRunStarted = core.NotifyOnRunStarted;
				NotifyOnRunCompleted = core.NotifyOnRunCompleted;
				_ignoreFile = core.WatchIgnoreFile;
            }
            catch (Exception ex)
            {
                DebugLog.Debug.FailedToConfigure(ex);
                throw;
            }
        }
Example #7
0
		private CoreSection getConfiguration(string configFile)
		{
			var core = new CoreSection();
			if (!File.Exists(configFile))
			{
				Debug.ConfigurationFileMissing();
				return core;
			}
			core.Read(configFile);
			return core;
		}
		public void Should_read_from_first_node_only()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.WatchDirectories.ShouldExclude.ShouldBeFalse();
		}
Example #9
0
		private void tryToConfigure(CoreSection core)
        {
            try
            {
                StartPaused = core.StartPaused.Value;
                _watchDirectories = core.WatchDirectories.Value;
                _buildExecutables.AddRange(core.BuildExecutables.Value);
                _nunitTestRunners.AddRange(core.NUnitTestRunner.Value);
                _msTestRunner.AddRange(core.MSTestRunner.Value);
                _xunitTestRunner.AddRange(core.XUnitTestRunner.Value);
                _mspecTestRunner.AddRange(core.MSpecTestRunner.Value);
                _codeEditor = core.CodeEditor.Value;
                _debuggingEnabled = core.DebuggingEnabled.Value;
                MSBuildAdditionalParameters = core.MSBuildAdditionalParameters.Value;
                MSBuildParallelBuildCount = core.MSBuildParallelBuildCount.Value;
				GrowlNotify = core.GrowlNotify.Value;
				NotifyOnRunStarted = core.NotifyOnRunStarted.Value;
				NotifyOnRunCompleted = core.NotifyOnRunCompleted.Value;
				TestAssembliesToIgnore = core.TestAssembliesToIgnore.Value;
				TestCategoriesToIgnore = core.TestCategoriesToIgnore.Value;
				_ignoreFile = core.WatchIgnoreFile.Value;
				FileChangeBatchDelay = core.FileChangeBatchDelay.Value;
				CustomOutputPath = core.CustomOutputPath.Value;
				RerunFailedTestsFirst = core.RerunFailedTestsFirst.Value;
                WhenWatchingSolutionBuildSolution = core.WhenWatchingSolutionBuildSolution.Value;
                UseAutoTestTestRunner = core.UseAutoTestTestRunner.Value;
                UseLowestCommonDenominatorAsWatchPath = core.UseLowestCommonDenominatorAsWatchPath.Value;
                WatchAllFiles = core.WatchAllFiles.Value;
                RunAssembliesInParallel = core.RunAssembliesInParallel.Value;
                TestRunnerCompatibilityMode = core.TestRunnerCompatibilityMode.Value;
                LogRecycleSize = core.LogRecycleSize.Value;
                ProjectsToIgnore = core.ProjectsToIgnore.Value;
                _keys = core.Keys;
            }
            catch (Exception ex)
            {
                DebugLog.Debug.FailedToConfigure(ex);
                throw;
            }
        }
Example #10
0
        private void tryToConfigure(CoreSection core)
        {
            try
            {
                _watchDirectories = core.WatchDirectories.Value;
                _buildExecutables.AddRange(core.BuildExecutables.Value);
                _nunitTestRunners.AddRange(core.NUnitTestRunner.Value);
                _msTestRunner.AddRange(core.MSTestRunner.Value);
                _xunitTestRunner.AddRange(core.XUnitTestRunner.Value);
                _codeEditor = core.CodeEditor.Value;
                _debuggingEnabled = core.DebuggingEnabled.Value;
				GrowlNotify = core.GrowlNotify.Value;
				NotifyOnRunStarted = core.NotifyOnRunStarted.Value;
				NotifyOnRunCompleted = core.NotifyOnRunCompleted.Value;
				TestAssembliesToIgnore = core.TestAssembliesToIgnore.Value;
				TestCategoriesToIgnore = core.TestCategoriesToIgnore.Value;
				_ignoreFile = core.WatchIgnoreFile.Value;
				FileChangeBatchDelay = core.FileChangeBatchDelay.Value;
            }
            catch (Exception ex)
            {
                DebugLog.Debug.FailedToConfigure(ex);
                throw;
            }
        }
		public void Should_read_from_boolean_nodes()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.DebuggingEnabled.ShouldExclude.ShouldBeTrue();
		}
		public void Should_read_from_value_item_nodes()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.WatchIgnoreFile.ShouldExclude.ShouldBeTrue();
		}
		public void Should_set_not_read_from_file_if_found()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.NUnitTestRunner.WasReadFromConfig.ShouldBeTrue();
		}
		public void Should_read_exclude_from_node()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.BuildExecutables.ShouldExclude.ShouldBeTrue();
		}
		public void Should_not_be_able_to_merge_code_editor()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.CodeEditor.ShouldMerge.ShouldBeFalse();
		}
		public void Should_not_allow_merge_for_growl()
		{
			var section = new CoreSection();
			section.Read(_file);
			section.GrowlNotify.ShouldMerge.ShouldBeFalse();
		}
		public void Should_ignore_invalid_configurations()
		{
			if (File.Exists(_file))
				File.Delete(_file);
			File.WriteAllText(_file, "");
			var section = new CoreSection();
			section.Read(_file);
		}