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; }
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); }
public Shell() { progressReporter = new ConsoleReporter(); folderModel = new FileSystemModel(); }