summaryrefslogtreecommitdiff
path: root/test/ios/tests/Tests.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/ios/tests/Tests.m')
-rw-r--r--test/ios/tests/Tests.m37
1 files changed, 0 insertions, 37 deletions
diff --git a/test/ios/tests/Tests.m b/test/ios/tests/Tests.m
deleted file mode 100644
index 4c2131d61c..0000000000
--- a/test/ios/tests/Tests.m
+++ /dev/null
@@ -1,37 +0,0 @@
-#import <XCTest/XCTest.h>
-#import "iosTestRunner.h"
-@interface Tests : XCTestCase
-
-@end
-
-@implementation Tests
-
-- (void)setUp {
- [super setUp];
-}
-
-- (void)tearDown {
- [super tearDown];
-}
-
-- (void)testStartUnitTestRunner {
- IosTestRunner* runner = [[IosTestRunner alloc] init];
- XCTAssert(runner, @"IOSTestRunner is not initialized correctly");
-
- NSString* testResult = [runner getResultPath];
- XCTAssert(testResult, @"IOSTestRunner did not produce a test result file");
-
- NSFileManager *fileManager = [NSFileManager defaultManager];
- BOOL fileFound = [fileManager fileExistsAtPath: testResult];
- XCTAssert(fileFound, @"Test result file '%@' does not exit", testResult);
- NSURL *resultURL = [NSURL fileURLWithPath:testResult];
- XCTAttachment *attachment1URL = [XCTAttachment attachmentWithContentsOfFileAtURL: resultURL];
- XCTAssert(attachment1URL, @"Failed to attach test result '%@'", testResult);
- attachment1URL.lifetime = XCTAttachmentLifetimeKeepAlways;
- [self addAttachment:attachment1URL];
-
- BOOL success = [runner getTestStatus];
- XCTAssert(success, @"IOSTestRunner reports error because some of the tests are not passed, please check the test report");
-}
-
-@end