Fix FBSimulatorConfigurationTests build

Summary: title

Reviewed By: lawrencelomax, Nekitosss

Differential Revision: D45346866

fbshipit-source-id: 93d8ccc73fd887389a7656473bd9cd37ae7d4c7d
This commit is contained in:
Johnny Souza 2023-04-27 06:27:13 -07:00 коммит произвёл Facebook GitHub Bot
Родитель f912ab1c54
Коммит 3a43ef7c28
4 изменённых файлов: 14 добавлений и 12 удалений

Просмотреть файл

@ -201,11 +201,6 @@
}
}
- (void)testCaseDidFailForTestClass:(NSString *)testClass method:(NSString *)method withMessage:(NSString *)message file:(NSString *)file line:(NSUInteger)line
{
}
- (void)testBundleReadyWithProtocolVersion:(NSInteger)protocolVersion minimumVersion:(NSInteger)minimumVersion
{
@ -259,4 +254,10 @@
}
- (void)testCaseDidFailForTestClass:(nonnull NSString *)testClass method:(nonnull NSString *)method exceptions:(nonnull NSArray<FBExceptionInfo *> *)exceptions
{
}
@end

Просмотреть файл

@ -105,7 +105,7 @@ static NSString *const RecordVideoEnvKey = @"FBSIMULATORCONTROL_RECORD_VIDEO";
- (void)setUp
{
self.continueAfterFailure = NO;
self.simulatorConfiguration = [FBSimulatorConfiguration.defaultConfiguration withDeviceModel:FBDeviceModeliPhoneSE_1stGeneration];
self.simulatorConfiguration = [FBSimulatorConfiguration.defaultConfiguration withDeviceModel:FBDeviceModeliPhone8];
self.bootConfiguration = [[FBSimulatorBootConfiguration alloc] initWithOptions:FBSimulatorControlTestCase.bootOptions environment:@{}];
self.deviceSetPath = FBSimulatorControlTestCase.defaultDeviceSetPath;
}

Просмотреть файл

@ -75,11 +75,6 @@
[self.mutableStartedSuites addObject:testSuite];
}
- (void)testCaseDidFailForTestClass:(NSString *)testClass method:(NSString *)method withMessage:(NSString *)message file:(NSString *)file line:(NSUInteger)line
{
}
- (void)finishedWithSummary:(FBTestManagerResultSummary *)summary
{
[self.mutableEndedSuites addObject:summary.testSuite];
@ -141,6 +136,11 @@
}
- (void)testCaseDidFailForTestClass:(nonnull NSString *)testClass method:(nonnull NSString *)method exceptions:(nonnull NSArray<FBExceptionInfo *> *)exceptions {
}
#pragma mark Accessors
- (NSArray<NSString *> *)startedSuites

Просмотреть файл

@ -147,7 +147,8 @@
{
[self.reporter didBeginExecutingTestPlan];
[self.reporter testCaseDidStartForTestClass:@"FooTest" method:@"BarCase"];
[self.reporter testCaseDidFailForTestClass:@"FooTest" method:@"BarCase" withMessage:@"BadBar" file:@"BadFile" line:42];
[self.reporter testCaseDidFailForTestClass:@"FooTest" method:@"BarCase" exceptions:@[[[FBExceptionInfo alloc] initWithMessage:@"BadBar" file:@"BadFile" line:42
]]];
[self.reporter testCaseDidFinishForTestClass:@"FooTest" method:@"BarCase" withStatus:FBTestReportStatusFailed duration:1 logs:nil];
[self.reporter didFinishExecutingTestPlan];
NSError *error = nil;