Added start XCTest method with default working directory
Summary: Added startTestRunnerLaunchConfiguration motheod with default working directory set to simulator's auxillary directory Reviewed By: migchez Differential Revision: D3138969 fb-gh-sync-id: 5e8c220c80ef5a372a8462e0e5128fe752df7416 fbshipit-source-id: 5e8c220c80ef5a372a8462e0e5128fe752df7416
This commit is contained in:
Родитель
2c507333a6
Коммит
1d0dafa7ea
|
@ -14,6 +14,15 @@
|
|||
|
||||
@interface FBSimulatorInteraction (XCTest)
|
||||
|
||||
/**
|
||||
Starts testing application using test bundle. It will use simulator's auxillaryDirectory as working directory
|
||||
|
||||
@param configuration configuration used to launch test runner application
|
||||
@param testBundlePath path to XCTest bundle used for testing
|
||||
@return the reciever, for chaining.
|
||||
*/
|
||||
- (instancetype)startTestRunnerLaunchConfiguration:(FBApplicationLaunchConfiguration *)configuration testBundlePath:(NSString *)testBundlePath;
|
||||
|
||||
/**
|
||||
Starts testing application using test bundle
|
||||
|
||||
|
|
|
@ -24,6 +24,11 @@
|
|||
|
||||
@implementation FBSimulatorInteraction (XCTest)
|
||||
|
||||
- (instancetype)startTestRunnerLaunchConfiguration:(FBApplicationLaunchConfiguration *)configuration testBundlePath:(NSString *)testBundlePath
|
||||
{
|
||||
return [self startTestRunnerLaunchConfiguration:configuration testBundlePath:testBundlePath workingDirectory:self.simulator.auxillaryDirectory];
|
||||
}
|
||||
|
||||
- (instancetype)startTestRunnerLaunchConfiguration:(FBApplicationLaunchConfiguration *)configuration testBundlePath:(NSString *)testBundlePath workingDirectory:(NSString *)workingDirectory
|
||||
{
|
||||
NSParameterAssert(configuration);
|
||||
|
|
Загрузка…
Ссылка в новой задаче