diff --git a/XCSummary/Additions/NSArrayAdditions.h b/XCSummary/Additions/NSArrayAdditions.h old mode 100644 new mode 100755 diff --git a/XCSummary/Additions/NSArrayAdditions.m b/XCSummary/Additions/NSArrayAdditions.m old mode 100644 new mode 100755 diff --git a/XCSummary/Models/CMActivitySummary.h b/XCSummary/Models/CMActivitySummary.h old mode 100644 new mode 100755 diff --git a/XCSummary/Models/CMActivitySummary.m b/XCSummary/Models/CMActivitySummary.m old mode 100644 new mode 100755 diff --git a/XCSummary/Models/CMEntity.h b/XCSummary/Models/CMEntity.h old mode 100644 new mode 100755 diff --git a/XCSummary/Models/CMEntity.m b/XCSummary/Models/CMEntity.m old mode 100644 new mode 100755 diff --git a/XCSummary/Models/CMTest.h b/XCSummary/Models/CMTest.h old mode 100644 new mode 100755 diff --git a/XCSummary/Models/CMTest.m b/XCSummary/Models/CMTest.m old mode 100644 new mode 100755 diff --git a/XCSummary/Models/CMTestableSummary.h b/XCSummary/Models/CMTestableSummary.h old mode 100644 new mode 100755 diff --git a/XCSummary/Models/CMTestableSummary.m b/XCSummary/Models/CMTestableSummary.m old mode 100644 new mode 100755 diff --git a/XCSummary/Parser/CMTestSummaryParser.h b/XCSummary/Parser/CMTestSummaryParser.h old mode 100644 new mode 100755 diff --git a/XCSummary/Parser/CMTestSummaryParser.m b/XCSummary/Parser/CMTestSummaryParser.m old mode 100644 new mode 100755 diff --git a/XCSummary/Templates/ActivityTemplateWithImage.html b/XCSummary/Templates/ActivityTemplateWithImage.html old mode 100644 new mode 100755 diff --git a/XCSummary/Templates/ActivityTemplateWithoutImage.html b/XCSummary/Templates/ActivityTemplateWithoutImage.html old mode 100644 new mode 100755 diff --git a/XCSummary/Templates/CMHTMLReportBuilder.h b/XCSummary/Templates/CMHTMLReportBuilder.h old mode 100644 new mode 100755 diff --git a/XCSummary/Templates/CMHTMLReportBuilder.m b/XCSummary/Templates/CMHTMLReportBuilder.m old mode 100644 new mode 100755 index 1947dcf..ae11219 --- a/XCSummary/Templates/CMHTMLReportBuilder.m +++ b/XCSummary/Templates/CMHTMLReportBuilder.m @@ -88,16 +88,25 @@ - (void)appendTests:(NSArray *)tests indentation:(CGFloat)indentation { if (obj.status == CMTestStatusFailure) { - [self _appendActivities:obj.activities indentation:indentation + 50]; + [self appendTest:obj indentation:indentation]; } } else { - [self _appendActivities:obj.activities indentation:indentation + 50]; + [self appendTest:obj indentation:indentation]; } + } }]; } + +- (void)appendTest:(CMTest *)test indentation:(CGFloat)indentation +{ + [self _appendBeginingForTest:test]; + [self _appendActivities:test.activities indentation:indentation + 50]; + [self _appendEndForTest:test]; +} + - (NSString *)build { NSString *templateFormat = [self _decodeTemplateWithName:Template]; @@ -118,7 +127,7 @@ - (void)_appendTestCase:(CMTest *)testCase indentation:(CGFloat)indentation NSString *templateFormat = testCase.status == CMTestStatusFailure ? [self _decodeTemplateWithName:TestCaseTemplateFailed] : [self _decodeTemplateWithName:TestCaseTemplate]; - NSString *composedString = [NSString stringWithFormat:templateFormat, indentation, @"px", testCase.testName, testCase.duration]; + NSString *composedString = [NSString stringWithFormat:templateFormat, indentation, @"px", testCase.testName, testCase.testName, testCase.duration]; [self.resultString appendString:composedString]; } @@ -154,6 +163,17 @@ - (void)_appendActivity:(CMActivitySummary *)activity indentation:(CGFloat)inden [self.resultString appendString:composedString]; } +- (void)_appendBeginingForTest:(CMTest *)test +{ + NSString *testBegining = [NSString stringWithFormat:@"