Exemple #1
0
        /// <summary>
        /// Runs the tests after building the project(s) under test.
        /// </summary>
        void BuildProjectBeforeRunningTests(SelectedTests selectedTests)
        {
            BuildProject build = CreateBuildProjectBeforeTestRun(selectedTests);

            build.BuildComplete += delegate {
                OnBuildComplete(build.LastBuildResults, selectedTests);
            };
            build.Run();
        }
Exemple #2
0
        public void Build(IProject project)
        {
            var build = new BuildProject(project);

            build.BuildComplete += BuildComplete;
            buildCompleteEvent.Reset();
            SD.MainThread.InvokeAsyncAndForget(() => build.Run());
            if (buildCompleteEvent.WaitOne(DefaultBuildTimeout))
            {
                BuildResults = build.LastBuildResults;
            }
            else
            {
                BuildResults = GetBuildTimeoutResult();
            }
            build.BuildComplete -= BuildComplete;
        }
Exemple #3
0
        public void Build(IProject project)
        {
            var build = new BuildProject(project);

            build.BuildComplete += BuildComplete;
            buildCompleteEvent.Reset();
            WorkbenchSingleton.SafeThreadAsyncCall(() => build.Run());
            if (buildCompleteEvent.WaitOne(DefaultBuildTimeout))
            {
                BuildResults = build.LastBuildResults;
            }
            else
            {
                BuildResults = GetBuildTimeoutResult();
            }
            build.BuildComplete -= BuildComplete;
        }
Exemple #4
0
 private void RunTarget(object sender, RoutedEventArgs e)
 {
     m_Project.Run(m_Project.DefaultTarget);
 }