File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ Display verbose command output.
6666
6767# in-progress
6868
69- Request in progress. Will wait a total of %s more seconds before timing out. Current Status='%s'.
69+ Request in progress. Will wait a total of %s more seconds before timing out. Current Status='%s'.
7070
7171# flags.seed-metadata.summary
7272
@@ -83,3 +83,11 @@ Specific released patch version to be converted.
8383# flags.patch-version.description
8484
8585Specify a released patch version as major.minor.patch to convert to a second-generation managed package version.
86+
87+ # flags.code-coverage.summary
88+
89+ Calculate and store the code coverage percentage by running the packaged Apex tests included in this package version.
90+
91+ # flags.code-coverage.description
92+
93+ Before you can promote and release a managed package version, the Apex code must meet a minimum 75% code coverage requirement.
Original file line number Diff line number Diff line change @@ -90,6 +90,14 @@ export class PackageConvert extends SfCommand<PackageVersionCreateRequestResult>
9090 deprecateAliases : true ,
9191 aliases : [ 'patchversion' ] ,
9292 } ) ,
93+ 'code-coverage' : Flags . boolean ( {
94+ deprecateAliases : true ,
95+ aliases : [ 'codecoverage' ] ,
96+ char : 'c' ,
97+ summary : messages . getMessage ( 'flags.code-coverage.summary' ) ,
98+ description : messages . getMessage ( 'flags.code-coverage.description' ) ,
99+ default : false ,
100+ } ) ,
93101 } ;
94102
95103 public async run ( ) : Promise < PackageVersionCreateRequestResult > {
@@ -131,6 +139,7 @@ export class PackageConvert extends SfCommand<PackageVersionCreateRequestResult>
131139 buildInstance : flags [ 'build-instance' ] as string ,
132140 seedMetadata : flags [ 'seed-metadata' ] as string ,
133141 patchversion : flags [ 'patch-version' ] as string ,
142+ codecoverage : flags [ 'code-coverage' ] as boolean ,
134143 } ,
135144 project
136145 ) ;
You can’t perform that action at this time.
0 commit comments