public void ExtendWithNUnitInfo(INUnitReportParser nUnitReportParser) { var testCaseResult = nUnitReportParser.GetTestCaseResult(Title); Success = testCaseResult.Success; Failed = testCaseResult.Failed; Result = testCaseResult.Result; Time = testCaseResult.Time; if (testCaseResult.Failed) { if (testCaseResult.Failure != null) { Message = testCaseResult.Failure.Message; StackTrace = testCaseResult.Failure.StackTrace; } } Ignored = testCaseResult.Ignored; if (testCaseResult.Ignored) { Message = testCaseResult.ReasonMessage; } Inconclusive = testCaseResult.Inconclusive; if (testCaseResult.Inconclusive) { Message = testCaseResult.ReasonMessage; } }
public void TestSetup() { var specFlowReportGenerator = new SpecFlowReportGenerator(TestConstants.ROOT_TESTDATA, "en-US"); feature_list = specFlowReportGenerator.GetSpecFlowFeatures(); nUnitReportParser = new NUnitReportParser(TestConstants.ROOT_TESTDATA + @"\NUnitReport\TestResult.xml"); reportCreator = new FeatureDocReportCreator(feature_list, nUnitReportParser); result = reportCreator.CreateFeatureDocReport(); }
public void ExtendWithNUnitInfo(INUnitReportParser nUnitReportParser) { Scenarios.ExtendWithNUnitInfo(nUnitReportParser); var featureResult = nUnitReportParser.GetFeatureResult(Title); Success = featureResult.Success; Failed = featureResult.Failed; Ignored = featureResult.Ignored; Inconclusive = featureResult.Inconclusive; Result = featureResult.Result; Time = featureResult.Time; }
public FeatureDocReportCreator(IList<Feature> features, INUnitReportParser nUnitReportParser) { _features = features; _nUnitReportParser = nUnitReportParser; }
public void TestSetup() { _nunitReportParser = new NUnitReportParser(RESULTFILE); }