private SpecConfiguration Load() { try { if (File.Exists(ResultsJsonFile)) { Results = TestRunnerState.FromFile(ResultsJsonFile); } } catch (JsonException ex) { Console.Error.WriteLine("warning: parsing previous run cache file: " + ex.Message); } return(this); }
public TestRunnerOptions(TestRunnerOptions copyFrom) { if (copyFrom == null) { return; } IgnoreFocus = copyFrom.IgnoreFocus; FixturePaths.AddAll(copyFrom.FixturePaths); LoaderPaths.AddAll(copyFrom.LoaderPaths); LoadAssemblyFromPath = copyFrom.LoadAssemblyFromPath; RandomSeed = copyFrom.RandomSeed; _flags = copyFrom._flags; ContextLines = copyFrom.ContextLines; SelfTest = copyFrom.SelfTest; PackageReferences.AddAll(copyFrom.PackageReferences); PlanFilter.CopyFrom(copyFrom.PlanFilter); TestTimeout = copyFrom.TestTimeout; PlanTimeout = copyFrom.PlanTimeout; SlowTestThreshold = copyFrom.SlowTestThreshold; AssertionMessageFormatMode = copyFrom.AssertionMessageFormatMode; PreviousRun = copyFrom.PreviousRun; }
internal void Save(TestRunResults result) { Results = TestRunnerState.FromResults(result); Results.Save(ResultsJsonFile); }