@maxim_mazurok/gapi.client.testing-v1 0.0.20230428 → 0.0.20230512
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +32 -1
- package/package.json +1 -1
- package/tests.ts +7 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://testing.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230512
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -278,6 +278,9 @@ declare namespace gapi.client {
|
|
|
278
278
|
/** Full Java-style package name for this application, e.g. "com.example.foo". */
|
|
279
279
|
packageName?:
|
|
280
280
|
string;
|
|
281
|
+
/** Services contained in the tag. */
|
|
282
|
+
services?:
|
|
283
|
+
Service[];
|
|
281
284
|
/** Specifies the API Level on which the application is designed to run. */
|
|
282
285
|
targetSdkVersion?:
|
|
283
286
|
number;
|
|
@@ -737,6 +740,14 @@ declare namespace gapi.client {
|
|
|
737
740
|
timeout?:
|
|
738
741
|
string;
|
|
739
742
|
}
|
|
743
|
+
interface Service {
|
|
744
|
+
/** Intent filters in the service */
|
|
745
|
+
intentFilter?:
|
|
746
|
+
IntentFilter[];
|
|
747
|
+
/** The android:name value */
|
|
748
|
+
name?:
|
|
749
|
+
string;
|
|
750
|
+
}
|
|
740
751
|
interface Shard {
|
|
741
752
|
/** Output only. The total number of shards. */
|
|
742
753
|
numShards?:
|
|
@@ -752,10 +763,30 @@ declare namespace gapi.client {
|
|
|
752
763
|
/** Shards test cases into the specified groups of packages, classes, and/or methods. */
|
|
753
764
|
manualSharding?:
|
|
754
765
|
ManualSharding;
|
|
766
|
+
/** Shards test based on previous test case timing records. */
|
|
767
|
+
smartSharding?:
|
|
768
|
+
SmartSharding;
|
|
755
769
|
/** Uniformly shards test cases given a total number of shards. */
|
|
756
770
|
uniformSharding?:
|
|
757
771
|
UniformSharding;
|
|
758
772
|
}
|
|
773
|
+
interface SmartSharding {
|
|
774
|
+
/**
|
|
775
|
+
* The amount of time tests within a shard should take. Default: 300 seconds (5 minutes). The minimum allowed: 120 seconds (2 minutes). The shard count is dynamically set based on
|
|
776
|
+
* time, up to the maximum shard limit (described below). To guarantee at least one test case for each shard, the number of shards will not exceed the number of test cases. Shard
|
|
777
|
+
* duration will be exceeded if: - The maximum shard limit is reached and there is more calculated test time remaining to allocate into shards. - Any individual test is estimated to be
|
|
778
|
+
* longer than the targeted shard duration. Shard duration is not guaranteed because smart sharding uses test case history and default durations which may not be accurate. The rules
|
|
779
|
+
* for finding the test case timing records are: - If the service has seen a test case in the last 30 days, the record of the latest successful one will be used. - For new test cases,
|
|
780
|
+
* the average duration of other known test cases will be used. - If there are no previous test case timing records available, the test case is considered to be 15 seconds long by
|
|
781
|
+
* default. Because the actual shard duration can exceed the targeted shard duration, we recommend setting the targeted value at least 5 minutes less than the maximum allowed test
|
|
782
|
+
* timeout (45 minutes for physical devices and 60 minutes for virtual), or using the custom test timeout value you set. This approach avoids cancelling the shard before all tests can
|
|
783
|
+
* finish. Note that there is a limit for maximum number of shards. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM
|
|
784
|
+
* virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500. To guarantee at least one test case for per shard, the number of shards will not
|
|
785
|
+
* exceed the number of test cases. Each shard created will count toward daily test quota.
|
|
786
|
+
*/
|
|
787
|
+
targetedShardDuration?:
|
|
788
|
+
string;
|
|
789
|
+
}
|
|
759
790
|
interface StartActivityIntent {
|
|
760
791
|
/** Action name. Required for START_ACTIVITY. */
|
|
761
792
|
action?:
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230512
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -178,6 +178,9 @@ gapi.load('client', async () => {
|
|
|
178
178
|
}
|
|
179
179
|
],
|
|
180
180
|
},
|
|
181
|
+
smartSharding: {
|
|
182
|
+
targetedShardDuration: "Test string",
|
|
183
|
+
},
|
|
181
184
|
uniformSharding: {
|
|
182
185
|
numShards: 42,
|
|
183
186
|
},
|
|
@@ -373,6 +376,9 @@ gapi.load('client', async () => {
|
|
|
373
376
|
}
|
|
374
377
|
],
|
|
375
378
|
},
|
|
379
|
+
smartSharding: {
|
|
380
|
+
targetedShardDuration: "Test string",
|
|
381
|
+
},
|
|
376
382
|
uniformSharding: {
|
|
377
383
|
numShards: 42,
|
|
378
384
|
},
|