Yuri Astrakhan
2025-02-08 22:33:24 -05:00
committed by GitHub
parent 14559245d8
commit a8f4f70636
297 changed files with 10306 additions and 10320 deletions

View File

@@ -28,7 +28,7 @@
if (!self) {
return nil;
}
self.testStatus = NO;
self.runner = new TestRunner();
NSError *error;
@@ -39,10 +39,10 @@
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDir = [paths objectAtIndex: 0];
NSString *destinationPath = [documentsDir stringByAppendingPathComponent: @"test-data"];
NSString *path = destinationPath;
// delete destinationPath if it exists
if ([fileManager fileExistsAtPath:destinationPath]) {
success = [fileManager removeItemAtPath: destinationPath error: &error];

View File

@@ -15,14 +15,14 @@
}
- (void)testStartRenderTestRunner {
IosTestRunner* runner = [[IosTestRunner alloc] init];
IosTestRunner* runner = [[IosTestRunner alloc] init];
XCTAssert(runner, @"IOSTestRunner is not initialized correctly");
NSString* styleResult = [runner getStyleResultPath];
XCTAssert(styleResult, @"IOSTestRunner does not produce a style test result file");
NSString* metricResult = [runner getMetricResultPath];
XCTAssert(metricResult, @"IOSTestRunner does not produce a metric test result file");
NSFileManager *fileManager = [NSFileManager defaultManager];
BOOL fileFound = [fileManager fileExistsAtPath: styleResult];
XCTAssert(fileFound, @"Test result html '%@' does not exit", styleResult);