Example #1
0
 int Run(Memory memory, IList<string> arguments) {
     ParseArguments(memory, arguments);
     var fileSystem = new FileSystemModel(memory.GetItem<Settings>().CodePageNumber);
     memory.GetItem<Context>().PageSource = fileSystem;
     memory.GetItem<Context>().SuitePath = new DirectoryPath(memory.GetItem<Settings>().InputFolder);
     myRunner = new SuiteRunner(memory, myProgressReporter);
     myRunner.Run(
         CreateStoryTestFolder(memory, fileSystem),
         selectedFile);
     return myRunner.TestCounts.FailCount;
 }
Example #2
0
 public void Initialize()
 {
     var folderModel = new FileSystemModel();
     new SuiteConfiguration(memory).LoadXml(folderModel.GetPageContent(@"storytest.config.xml"));
     var inputPath = memory.GetItem<Settings>().InputFolder;
     var outputPath = memory.GetItem<Settings>().OutputFolder;
     var processor = new CellProcessorBase(memory, memory.GetItem<CellOperators>());
     view.ShowTests(new TestFiles(
             new FileFolder(inputPath),
             new FileFolder(outputPath),
             new StoryTestSuite(memory.GetItem<FileExclusions>(), s => IsExecutable(processor, s))
         ).Tree);
 }
Example #3
0
 public Shell() {
     progressReporter = new ConsoleReporter();
     folderModel = new FileSystemModel();
 }