Skip to content

Commit 188d767

Browse files
committed
[ENG-11420] Add --what-to-test for ios submit
1 parent 26ba071 commit 188d767

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

packages/eas-cli/src/commands/submit.ts

+8
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ interface RawCommandFlags {
3333
verbose: boolean;
3434
wait: boolean;
3535
'non-interactive': boolean;
36+
'what-to-test'?: string;
3637
}
3738

3839
interface CommandFlags {
@@ -42,6 +43,7 @@ interface CommandFlags {
4243
verbose: boolean;
4344
wait: boolean;
4445
nonInteractive: boolean;
46+
whatToTest?: string;
4547
}
4648

4749
export default class Submit extends EasCommand {
@@ -87,6 +89,9 @@ export default class Submit extends EasCommand {
8789
default: false,
8890
description: 'Run command in non-interactive mode',
8991
}),
92+
'what-to-test': Flags.string({
93+
description: 'What to test',
94+
}),
9095
};
9196

9297
static override contextDefinition = {
@@ -132,6 +137,7 @@ export default class Submit extends EasCommand {
132137
profile: submissionProfile.profile,
133138
archiveFlags: flagsWithPlatform.archiveFlags,
134139
nonInteractive: flagsWithPlatform.nonInteractive,
140+
whatToTest: flagsWithPlatform.whatToTest,
135141
actor,
136142
graphqlClient,
137143
analytics,
@@ -175,6 +181,7 @@ export default class Submit extends EasCommand {
175181
wait,
176182
profile,
177183
'non-interactive': nonInteractive,
184+
'what-to-test': whatToTest,
178185
...archiveFlags
179186
} = flags;
180187

@@ -195,6 +202,7 @@ export default class Submit extends EasCommand {
195202
wait,
196203
profile,
197204
nonInteractive,
205+
whatToTest,
198206
};
199207
}
200208

packages/eas-cli/src/submit/context.ts

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export interface SubmissionContext<T extends Platform> {
3232
vcsClient: Client;
3333
applicationIdentifierOverride?: string;
3434
specifiedProfile?: string;
35+
whatToTest?: string;
3536
}
3637

3738
export interface SubmitArchiveFlags {
@@ -57,6 +58,7 @@ export async function createSubmissionContextAsync<T extends Platform>(params: {
5758
projectId: string;
5859
vcsClient: Client;
5960
specifiedProfile?: string;
61+
whatToTest?: string;
6062
}): Promise<SubmissionContext<T>> {
6163
const {
6264
applicationIdentifier,

packages/eas-cli/src/submit/ios/IosSubmitter.ts

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export default class IosSubmitter extends BaseSubmitter<
127127
return {
128128
ascAppIdentifier,
129129
appleIdUsername,
130+
whatToTest: this.ctx.whatToTest,
130131
...(appSpecificPassword ? this.formatAppSpecificPassword(appSpecificPassword) : null),
131132
...(ascApiKeyResult?.result ? this.formatAscApiKeyResult(ascApiKeyResult.result) : null),
132133
};

0 commit comments

Comments
 (0)