コード例 #1
0
 public void Simple_local_subscription()
 {
     var project =
         new ProjectDirectoryLoader(new FileSystem()).Load(".".ToFullPath().ParentDirectory().ParentDirectory());
     using (var runner = new ProjectTestRunner(project))
     {
         runner.RunAndAssertTest("Subscriptions/Simple local subscription");
     }
 }
コード例 #2
0
 public void Go()
 {
     var loader = new ProjectDirectoryLoader(new FileSystem());
     IProject project = loader.Load(FubuMvcPackageFacility.GetApplicationPath());
     project.TimeoutInSeconds = 240;
     using (var runner = new ProjectTestRunner(project))
     {
         runner.RunAndAssertTest("HealthMonitoring/An inactive task should get reassigned");
     }
 }
コード例 #3
0
        public void Setup()
        {
            runner = StoryTeller.Testing.DataMother.GrammarsProjectRunner();
            theLibrary = runner.GetLibary();

            controller = MockRepository.GenerateMock<IOutlineController>();

            service = new OutlineTreeService(new ProjectContext()
            {
                Library = theLibrary
            });
        }
コード例 #4
0
        public void SendAndAwait_Happy_Path()
        {
            var project = new Project
            {
                ProjectFolder = ".".ToFullPath().ParentDirectory().ParentDirectory(),
                TimeoutInSeconds = 240
            };

            using (var runner = new ProjectTestRunner(project))
            {
                runner.RunAndAssertTest("Subscriptions/Simple global subscriptions from one node to another");
            }
        }
コード例 #5
0
ファイル: TestRunner.cs プロジェクト: GaryLCoxJr/StoryTeller2
 private bool ExecuteTest(string projectFile, string testName)
 {
     ProjectTestRunner runner = new ProjectTestRunner(projectFile);
     try
     {
         Test result = runner.RunTest(testName);
         return result.WasSuccessful();
     }
     catch (Exception e)
     {
         // EXHANDLED:
         Console.WriteLine(e);
         runner.Dispose();
     }
     return false;
 }
コード例 #6
0
        public void Can_verify_the_displayed_columns_by_name()
        {
            var runner = new ProjectTestRunner(@"C:\code\FubuMVC.SlickGrid\src\SlickGridStoryteller\storyteller.xml");

            try
            {
                
                runner.RunAndAssertTest("Simple/Can verify the displayed columns by name");
            }
            finally
            {
                runner.Dispose();
            }

            
        }
コード例 #7
0
ファイル: ProjectRunner.cs プロジェクト: larsw/storyteller
        private void executeProject(IProject project)
        {
            var    runner = new ProjectTestRunner(project);
            string projectHistoryFolder = Path.Combine(_historyFolder, project.Name);

            Directory.CreateDirectory(projectHistoryFolder);


            try
            {
                runner.RunAll(test =>
                {
                    try
                    {
                        _counts[test.Lifecycle].Tally(test);

                        string filename = Path.GetFileNameWithoutExtension(test.FileName) +
                                          DateTime.Now.ToString("hhmmss") + "-results.htm";
                        string resultFile = Path.Combine(_resultsFolder,
                                                         filename);

                        test.WriteResultsToFile(resultFile);
                        _summary.AddTest(test, "results/" + filename);

                        ResultPersistor.SaveResult(test.LastResult, test, projectHistoryFolder);
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex);
                    }
                });
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
            finally
            {
                runner.Dispose();
            }
        }
コード例 #8
0
 public void SetUp()
 {
     runner = new ProjectTestRunner(DataMother.MathProjectFile());
 }
コード例 #9
0
 public void SetUp()
 {
     runner = DataMother.GrammarsProjectRunner();
     usages = new UsageGraph(runner.GetLibary(), new ConsoleUsageGraphListener());
     usages.Rebuild(runner.Hierarchy);
 }
コード例 #10
0
 public void SetupRunner()
 {
     runner = new ProjectTestRunner(@"C:\code\FubuMVC.Authentication\src\AuthenticationStoryteller\storyteller.xml");
 }
コード例 #11
0
ファイル: StoryTellerDebug.cs プロジェクト: rsanders1/bottles
 public void SetupRunner()
 {
     var root = Path.GetPathRoot(AppDomain.CurrentDomain.BaseDirectory);
     runner = new ProjectTestRunner(root.AppendPath("git", "bottles", "src", "Bottles.Storyteller", "BottlesStoryTeller.xml"));
 }
コード例 #12
0
 public void SetupRunner()
 {
     runner = new ProjectTestRunner(@"..\..\StoryTeller.xml");
 }
コード例 #13
0
 public void SetUp()
 {
     runner = DataMother.MathProjectRunner();
 }
コード例 #14
0
 public void SetupRunner()
 {
     runner = new ProjectTestRunner(@"C:\code\FubuMVC.Saml2\src\FubuMVC.Saml2.Storyteller\storyteller.xml");
 }
コード例 #15
0
 public void SetUp()
 {
     runner = new ProjectTestRunner(DataMother.THE_GRAMMAR_FILE);
     usages = new UsageGraph(runner.GetLibary(), new ConsoleUsageGraphListener());
     usages.Rebuild(runner.Hierarchy);
 }
コード例 #16
0
 public void SetupRunner()
 {
     runner = new ProjectTestRunner(@"C:\home\study\TodoSiteProj\src\TodoSite.Storyteller\TodoSite.xml");
 }
コード例 #17
0
ファイル: ProjectRunner.cs プロジェクト: abombss/storyteller
        private void executeProject(IProject project)
        {
            var runner = new ProjectTestRunner(project);
            string projectHistoryFolder = Path.Combine(_historyFolder, project.Name);
            Directory.CreateDirectory(projectHistoryFolder);

            try
            {
                runner.RunAll(test =>
                {
                    _counts[test.Lifecycle].Tally(test);

                    string filename = Path.GetFileNameWithoutExtension(test.FileName) +
                                      DateTime.Now.ToString("hhmmss") + "-results.htm";
                    string resultFile = Path.Combine(_resultsFolder,
                                                     filename);

                    test.WriteResultsToFile(resultFile);
                    _summary.AddTest(test, "results/" + filename);

                    ResultPersistor.SaveResult(test.LastResult, test, projectHistoryFolder);
                });
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                runner.Dispose();
            }
        }
コード例 #18
0
ファイル: StoryTellerDebug.cs プロジェクト: jemacom/fubumvc
 public void SetupRunner()
 {
     runner = new ProjectTestRunner(@"C:\code\fubumvc\Storyteller.xml");
     runner.Project.TimeoutInSeconds = 0;
 }
コード例 #19
0
 public void SetupRunner()
 {
     runner = new ProjectTestRunner(@"..\..\..\..\samples\grammars.xml");
 }
コード例 #20
0
 public void SetupRunner()
 {
     runner = new ProjectTestRunner(@"C:\git\bottles\src\Bottles.Storyteller\BottlesStoryTeller.xml");
 }
コード例 #21
0
 public void SetupRunner()
 {
     runner = new ProjectTestRunner(@"C:\git\fubumvc\src\StoryTellerTesting\Storyteller.xml");
 }
コード例 #22
0
ファイル: Test.cs プロジェクト: jpeace/Polyphony
 public void SetupRunner()
 {
     runner = new ProjectTestRunner(@"C:\Development\Spikes\Polyphony\Source\Polyphony.AcceptanceTests\bin\Debug\Polyphony.xml");
 }
コード例 #23
0
        private void executeProject(IProject project)
        {
            var runner = new ProjectTestRunner(project);

            var projectHistoryFolder = Path.Combine(_historyFolder, project.Name);
            Directory.CreateDirectory(projectHistoryFolder);

            try
            {
                Func<Hierarchy, IEnumerable<Test>> selector = h => h.GetAllTests();
                if (StringExtensions.IsNotEmpty(Workspace))
                {
                    selector = h => h.FindSuite(Workspace).GetAllTests();
                }

                if (DesiredLifecycle != Lifecycle.Any)
                {
                    var nestedSelector = selector;
                    selector = h => nestedSelector(h).Where(t => t.Lifecycle == DesiredLifecycle);
                }

                runner.MaxRetries = MaxRetries;

                runner.RunAll(selector, test =>
                {
                    try
                    {
                        _counts[test.Lifecycle].Tally(test);

                        var filename = Path.GetFileNameWithoutExtension(test.FileName) +
                                       DateTime.Now.ToString("hhmmss") + "-results.htm";
                        var resultFile = Path.Combine(_resultsFolder,
                                                      filename);

                        test.WriteResultsToFile(resultFile);
                        _summary.AddTest(test, "results/" + filename);

                        ResultPersistor.SaveResult(test.LastResult, test, projectHistoryFolder);
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex);
                    }
                });
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
            finally
            {
                runner.Dispose();
            }
        }
コード例 #24
0
ファイル: StoryTellerDebug.cs プロジェクト: jemacom/fubumvc
 public void SetupRunner()
 {
     runner = new ProjectTestRunner(@"C:\code\fubumvc\Storyteller.xml");
 }