Add simple tests observer class for failure reporting

This commit is contained in:
iska
2016-04-11 01:12:40 +02:00
parent c9d72646bc
commit 432df997b3
3 changed files with 118 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
//
// HTMLKitTestObserver.h
// HTMLKit
//
// Created by Iska on 10/04/16.
// Copyright © 2016 BrainCookie. All rights reserved.
//
#import <XCTest/XCTest.h>
@interface HTMLKitTestReport : NSObject
@property (assign, readonly) NSUInteger totalCount;
@property (assign, readonly) NSUInteger failureCount;
@property (copy, readonly) NSString *failureReport;
@end
@interface HTMLKitTestObserver<TestCase: XCTestCase *> : NSObject <XCTestObservation>
- (instancetype)initWithName:(NSString *)name;
- (void)addCaseForHTML5LibTestWithInput:(NSString *)input;
- (HTMLKitTestReport *)generateReport;
@end