/// <summary> /// Writes a code representation of a test run's test results. /// This includes all the files for a fully functional test project. /// The generated code files can be used to execute a test run that /// would regenerate the test results. /// </summary> /// <param name="testRun">The test run whose results you want to write to code.</param> /// <param name="rootNamespace">The root namespace to use for generating the project files.</param> /// <param name="directory">The directory to write the files to.</param> public static void WriteFeaturesToCode(this xBDD.Model.TestRun testRun, string rootNamespace, string directory) { ReportingFactory factory = new ReportingFactory(); CodeWriter saver = factory.GetCodeWriter(); saver.WriteFeaturesToCode(testRun, rootNamespace, directory); }
/// <summary> /// Writes a code representation of a test run's test results. /// This includes all the files for a fully functional test project. /// The generated code files can be used to execute a test run that /// would regenerate the test results. /// </summary> /// <param name="testRun">The test run whose results you want to write to code.</param> /// <param name="rootNamespace">The root namespace to use for generating the project files.</param> /// <param name="directory">The directory to write the files to.</param> /// <param name="removeFromCapabilityNameStart">Sets the Remove Capability Name Start setting for xBDD.</param> public static void WriteToCode(this xBDD.Model.TestRun testRun, string rootNamespace, string directory, string removeFromCapabilityNameStart) { ReportingFactory factory = new ReportingFactory(); CodeWriter saver = factory.GetCodeWriter(); saver.WriteToCode(testRun, rootNamespace, directory, removeFromCapabilityNameStart); }