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"); } }
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"); } }
public void Setup() { runner = StoryTeller.Testing.DataMother.GrammarsProjectRunner(); theLibrary = runner.GetLibary(); controller = MockRepository.GenerateMock<IOutlineController>(); service = new OutlineTreeService(new ProjectContext() { Library = theLibrary }); }
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"); } }
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; }
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(); } }
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(); } }
public void SetUp() { runner = new ProjectTestRunner(DataMother.MathProjectFile()); }
public void SetUp() { runner = DataMother.GrammarsProjectRunner(); usages = new UsageGraph(runner.GetLibary(), new ConsoleUsageGraphListener()); usages.Rebuild(runner.Hierarchy); }
public void SetupRunner() { runner = new ProjectTestRunner(@"C:\code\FubuMVC.Authentication\src\AuthenticationStoryteller\storyteller.xml"); }
public void SetupRunner() { var root = Path.GetPathRoot(AppDomain.CurrentDomain.BaseDirectory); runner = new ProjectTestRunner(root.AppendPath("git", "bottles", "src", "Bottles.Storyteller", "BottlesStoryTeller.xml")); }
public void SetupRunner() { runner = new ProjectTestRunner(@"..\..\StoryTeller.xml"); }
public void SetUp() { runner = DataMother.MathProjectRunner(); }
public void SetupRunner() { runner = new ProjectTestRunner(@"C:\code\FubuMVC.Saml2\src\FubuMVC.Saml2.Storyteller\storyteller.xml"); }
public void SetUp() { runner = new ProjectTestRunner(DataMother.THE_GRAMMAR_FILE); usages = new UsageGraph(runner.GetLibary(), new ConsoleUsageGraphListener()); usages.Rebuild(runner.Hierarchy); }
public void SetupRunner() { runner = new ProjectTestRunner(@"C:\home\study\TodoSiteProj\src\TodoSite.Storyteller\TodoSite.xml"); }
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(); } }
public void SetupRunner() { runner = new ProjectTestRunner(@"C:\code\fubumvc\Storyteller.xml"); runner.Project.TimeoutInSeconds = 0; }
public void SetupRunner() { runner = new ProjectTestRunner(@"..\..\..\..\samples\grammars.xml"); }
public void SetupRunner() { runner = new ProjectTestRunner(@"C:\git\bottles\src\Bottles.Storyteller\BottlesStoryTeller.xml"); }
public void SetupRunner() { runner = new ProjectTestRunner(@"C:\git\fubumvc\src\StoryTellerTesting\Storyteller.xml"); }
public void SetupRunner() { runner = new ProjectTestRunner(@"C:\Development\Spikes\Polyphony\Source\Polyphony.AcceptanceTests\bin\Debug\Polyphony.xml"); }
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(); } }
public void SetupRunner() { runner = new ProjectTestRunner(@"C:\code\fubumvc\Storyteller.xml"); }