Example #1
0
 // SAMPLE: StorytellerRunner-with-custom-ISystem
 public static void Debug()
 {
     using (var runner = StorytellerRunner.For <SpecificationSystem>())
     {
         runner.Run("path to the spec");
     }
 }
 public static void TryIt()
 {
     using (var runner = StorytellerRunner.For <StorytellerSpecsSystem>())
     {
         runner.Run("SerializationExpression Selection / SerializationExpression Selection Rules");
         runner.OpenResultsInBrowser();
     }
 }
Example #3
0
        public void DoStuff()
        {
            using (var runner = StorytellerRunner.For <SpecificationSystem>())
            {
                //runner.RunAll(5.Minutes());

                runner.Run("Docs / Advanced LinkTo Transformations");

                runner.OpenResultsInBrowser();
            }
        }
Example #4
0
        public static void Debug()
        {
            using (var runner = StorytellerRunner.Basic())
            {
                var counts = runner.Run("Publishing / LQ / Resiliency / Receive a garbled message that blows up in deserialization").Counts;
                //var counts = runner.Run("Publishing / LQ / Resiliency / Receive a message with an unknown content type").Counts;
                //var counts = runner.Run("Publishing / LQ / Resiliency / Receive an unhandled message type").Counts;

                Console.WriteLine(counts);

                //runner.RunAll(2.Minutes());
            }
        }
Example #5
0
        public static void FindProblems()
        {
            using (var runner = StorytellerRunner.For <MartenSystem>())
            {
                var results = runner.Run("Event Store / Async Daemon / Rebuild Projection in a Separate Schema Multiple Times");
                Console.WriteLine(results.Counts);

                //results = runner.Run("Event Store / Async Daemon / Rebuild Projection");

                //Console.WriteLine(results.Counts);

                //runner.OpenResultsInBrowser();
            }
        }
Example #6
0
        public static void FindProblems()
        {
            using (var runner = StorytellerRunner.For <MartenSystem>())
            {
                //var results = runner.Run("Multi Tenancy / Deleting by Id");
                //var results = runner.Run("Multi Tenancy / Loading Documents by Id");
                var results = runner.Run("Event Store / Async Daemon / Rebuild Projection");
                Console.WriteLine(results.Counts);

                //results = runner.Run("Event Store / Async Daemon / Rebuild Projection");

                //Console.WriteLine(results.Counts);

                runner.OpenResultsInBrowser();
            }
        }
Example #7
0
        static void Main(string[] args)
        {
            if (args[0] == "try")
            {
                using (var runner = StorytellerRunner.For <JasperStorytellerHost <MyJasperAppRegistry> >())
                {
                    runner.Run("Recording Messages / Try out the diagnostics");
                    runner.OpenResultsInBrowser();
                }


                return;
            }

            // SAMPLE: bootstrapping-storyteller-with-Jasper
            JasperStorytellerHost.Run <MyJasperAppRegistry>(args);
            // ENDSAMPLE
        }
        // SAMPLE: using-storytellerrunner-with-basic
        public void run_spec()
        {
            // There is an optional argument in this method to give
            // Storyteller a hint about where the project root folder
            // is, but in most cases it should be able to figure that
            // out on its own
            using (var runner = StorytellerRunner.Basic())
            {
                // run one spec by its path as shown in the UI.
                // You can just copy/paste the full spec path
                // from the spec editor page in the UI
                var results = runner.Run("Arrays / Use an array argument");
                Console.WriteLine(results.Counts);

                // You can open the results in a browser window
                runner.OpenResultsInBrowser();

                // You can write the results to a file
                runner.WriteResultsDocument("results.htm");

                // Run all the specifications in the project
                runner.RunAll(TimeSpan.FromMinutes(2));
            }
        }
Example #9
0
        protected override void RunTool()
        {
            var tool = new StorytellerRunner(FileSystem, Environment, ProcessRunner, ToolLocator, Arguments);

            tool.RunCommand("src/test", Settings);
        }