public void record_data_for_client()
        {
            var task = theInput.StartBatch(theController);

            task.Wait(3.Seconds());

            var result = task.Result;

            result.fixtures = theFixtures;

            if (theFixtures == null)
            {
                throw new Exception("Cannot be null dammit");
            }

            var json = JsonSerialization.ToIndentedJson(result);

            var clientPath = TestingContext.FindClientFolder();


            new FileSystem().WriteStringToFile(clientPath.AppendPath("batch-result-data.js"), "module.exports = " + json);
        }
        public run_command_integration_specs()
        {
            var directory = TestingContext.FindParallelDirectory("Storyteller.Samples");


            var project = Project.LoadForFolder(directory);

#if NET46
            theController = new RemoteController(project, new AppDomainSystemLauncher(project));
#else
            throw new NotImplementedException("Not done yet for CoreCLR");
#endif

            theInput = new RunInput {
                Path = directory, RetriesFlag = 1
            };
            theController = theInput.BuildRemoteController();
            var task = theController.Start();
            task.Wait(3.Seconds());

            theFixtures = task.Result.fixtures;
        }
        public run_command_integration_specs()
        {
            TestUtility.CleanUpHangingProcesses();

            var directory = TestingContext.FindParallelDirectory("Storyteller.Samples");


            var project = Project.LoadForFolder(directory);

#if NET46
            theController = new EngineController(project, new AppDomainSystemLauncher(project));
#else
            theController = new EngineController(project, new ProcessRunnerSystemLauncher(project));
#endif

            theInput = new RunInput {
                Path = directory, RetriesFlag = 1
            };
            theController = theInput.BuildEngine();
            var task = theController.Start();
            task.Wait(3.Seconds());

            theFixtures = task.Result.fixtures;
        }